1 #ifndef STAN_MATH_PRIM_MAT_FUN_MULTIPLY_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_MULTIPLY_HPP 7 #include <boost/type_traits/is_arithmetic.hpp> 8 #include <boost/utility/enable_if.hpp> 21 template <
int R,
int C,
typename T>
23 typename boost::enable_if_c<boost::is_arithmetic<T>::value,
24 Eigen::Matrix<double, R, C> >::type
38 template <
int R,
int C,
typename T>
40 typename boost::enable_if_c<boost::is_arithmetic<T>::value,
41 Eigen::Matrix<double, R, C> >::type
43 const Eigen::Matrix<double, R, C>& m) {
57 template<
int R1,
int C1,
int R2,
int C2>
58 inline Eigen::Matrix<double, R1, C2>
59 multiply(
const Eigen::Matrix<double, R1, C1>& m1,
60 const Eigen::Matrix<double, R2, C2>& m2) {
76 template<
int C1,
int R2>
77 inline double multiply(
const Eigen::Matrix<double, 1, C1>& rv,
78 const Eigen::Matrix<double, R2, 1>& v) {
Eigen::Matrix< fvar< T >, R1, C1 > multiply(const Eigen::Matrix< fvar< T >, R1, C1 > &m, const fvar< T > &c)
void check_multiplicable(const char *function, const char *name1, const T1 &y1, const char *name2, const T2 &y2)
Check if the matrices can be multiplied.
void check_matching_sizes(const char *function, const char *name1, const T_y1 &y1, const char *name2, const T_y2 &y2)
Check if two structures at the same size.