1 #ifndef STAN_MATH_FWD_MAT_FUN_DIVIDE_HPP
2 #define STAN_MATH_FWD_MAT_FUN_DIVIDE_HPP
14 template <
typename T1,
typename T2>
21 template <
typename T,
int R,
int C>
22 inline Eigen::Matrix<fvar<T>, R, C>
24 Eigen::Matrix<fvar<T>, R, C> res(v.rows(), v.cols());
25 for (
int i = 0; i < v.rows(); i++) {
26 for (
int j = 0; j < v.cols(); j++)
27 res(i, j) = v(i, j) / c;
32 template <
typename T,
int R,
int C>
33 inline Eigen::Matrix<fvar<T>, R, C>
35 Eigen::Matrix<fvar<T>, R, C>
36 res(v.rows(), v.cols());
37 for (
int i = 0; i < v.rows(); i++) {
38 for (
int j = 0; j < v.cols(); j++)
39 res(i, j) = v(i, j) / c;
44 template <
typename T,
int R,
int C>
45 inline Eigen::Matrix<fvar<T>, R, C>
47 Eigen::Matrix<fvar<T>, R, C>
48 res(v.rows(), v.cols());
49 for (
int i = 0; i < v.rows(); i++) {
50 for (
int j = 0; j < v.cols(); j++)
51 res(i, j) = v(i, j) / c;
56 template <
typename T,
int R,
int C>
57 inline Eigen::Matrix<fvar<T>, R, C>
62 template <
typename T,
int R,
int C>
63 inline Eigen::Matrix<fvar<T>, R, C>
68 template <
typename T,
int R,
int C>
69 inline Eigen::Matrix<fvar<T>, R, C>
fvar< T > operator/(const fvar< T > &x1, const fvar< T > &x2)
stan::return_type< T1, T2 >::type divide(const T1 &v, const T2 &c)
boost::math::tools::promote_args< typename scalar_type< T1 >::type, typename scalar_type< T2 >::type, typename scalar_type< T3 >::type, typename scalar_type< T4 >::type, typename scalar_type< T5 >::type, typename scalar_type< T6 >::type >::type type