Stan Math Library  2.15.0
reverse mode automatic differentiation
Classes | Namespaces | Functions
multiply.hpp File Reference
#include <stan/math/prim/mat/fun/Eigen.hpp>
#include <stan/math/prim/mat/fun/typedefs.hpp>
#include <stan/math/rev/scal/fun/value_of_rec.hpp>
#include <stan/math/rev/scal/fun/value_of.hpp>
#include <stan/math/rev/mat/fun/to_var.hpp>
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/mat/fun/value_of_rec.hpp>
#include <stan/math/prim/mat/err/check_multiplicable.hpp>
#include <stan/math/prim/scal/err/check_not_nan.hpp>
#include <boost/math/tools/promotion.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits.hpp>

Go to the source code of this file.

Classes

class  stan::math::multiply_mat_vari< TA, RA, CA, TB, CB >
 This is a subclass of the vari class for matrix multiplication A * B where A is N by M and B is M by K. More...
 
class  stan::math::multiply_mat_vari< TA, 1, CA, TB, 1 >
 This is a subclass of the vari class for matrix multiplication A * B where A is 1 by M and B is M by 1. More...
 
class  stan::math::multiply_mat_vari< double, RA, CA, TB, CB >
 This is a subclass of the vari class for matrix multiplication A * B where A is an N by M matrix of double and B is M by K. More...
 
class  stan::math::multiply_mat_vari< double, 1, CA, TB, 1 >
 This is a subclass of the vari class for matrix multiplication A * B where A is a double row vector of length M and B is a vector of length M. More...
 
class  stan::math::multiply_mat_vari< TA, RA, CA, double, CB >
 This is a subclass of the vari class for matrix multiplication A * B where A is N by M and B is an M by K matrix of doubles. More...
 
class  stan::math::multiply_mat_vari< TA, 1, CA, double, 1 >
 This is a subclass of the vari class for matrix multiplication A * B where A is a row vector of length M and B is a vector of length M of doubles. More...
 

Namespaces

 stan
 
 stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename T1 , typename T2 >
boost::enable_if_c<(boost::is_scalar< T1 >::value||boost::is_same< T1, var >::value) &&(boost::is_scalar< T2 >::value||boost::is_same< T2, var >::value), typename boost::math::tools::promote_args< T1, T2 >::type >::type stan::math::multiply (const T1 &v, const T2 &c)
 Return the product of two scalars. More...
 
template<typename T1 , typename T2 , int R2, int C2>
Eigen::Matrix< var, R2, C2 > stan::math::multiply (const T1 &c, const Eigen::Matrix< T2, R2, C2 > &m)
 Return the product of scalar and matrix. More...
 
template<typename T1 , int R1, int C1, typename T2 >
Eigen::Matrix< var, R1, C1 > stan::math::multiply (const Eigen::Matrix< T1, R1, C1 > &m, const T2 &c)
 Return the product of scalar and matrix. More...
 
template<typename TA , int RA, int CA, typename TB , int CB>
boost::enable_if_c< boost::is_same< TA, var >::value||boost::is_same< TB, var >::value, Eigen::Matrix< var, RA, CB > >::type stan::math::multiply (const Eigen::Matrix< TA, RA, CA > &A, const Eigen::Matrix< TB, CA, CB > &B)
 Return the product of two matrices. More...
 
template<typename TA , int CA, typename TB >
boost::enable_if_c< boost::is_same< TA, var >::value||boost::is_same< TB, var >::value, var >::type stan::math::multiply (const Eigen::Matrix< TA, 1, CA > &A, const Eigen::Matrix< TB, CA, 1 > &B)
 Return the scalar product of a row vector and a vector. More...
 

     [ Stan Home Page ] © 2011–2016, Stan Development Team.