1#ifndef STAN_MATH_PRIM_FUN_ELT_MULTIPLY_HPP
2#define STAN_MATH_PRIM_FUN_ELT_MULTIPLY_HPP
23template <
typename Mat1,
typename Mat2,
24 require_all_eigen_t<Mat1, Mat2>* =
nullptr,
25 require_all_not_st_var<Mat1, Mat2>* =
nullptr>
28 return m1.cwiseProduct(m2);
42template <
typename Scalar1,
typename Scalar2,
60template <
typename T1,
typename T2, require_any_matrix_t<T1, T2>* =
nullptr,
61 require_any_stan_scalar_t<T1, T2>* =
nullptr>
elt_multiply_< as_operation_cl_t< T_a >, as_operation_cl_t< T_b > > elt_multiply(T_a &&a, T_b &&b)
require_all_t< is_stan_scalar< std::decay_t< Types > >... > require_all_stan_scalar_t
Require all of the types satisfy is_stan_scalar.
auto multiply(const Mat1 &m1, const Mat2 &m2)
Return the product of the specified matrices.
void check_matching_dims(const char *function, const char *name1, const T1 &y1, const char *name2, const T2 &y2)
Check if the two containers have the same dimensions.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...