1 #ifndef STAN_MATH_PRIM_MAT_FUN_SUBTRACT_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_SUBTRACT_HPP 4 #include <boost/math/tools/promotion.hpp> 24 template <
typename T1,
typename T2,
int R,
int C>
25 inline Eigen::Matrix<typename boost::math::tools::promote_args<T1, T2>::type, R,
27 subtract(
const Eigen::Matrix<T1, R, C>& m1,
const Eigen::Matrix<T2, R, C>& m2) {
32 template <
typename T1,
typename T2,
int R,
int C>
33 inline Eigen::Matrix<typename boost::math::tools::promote_args<T1, T2>::type, R,
35 subtract(
const T1& c,
const Eigen::Matrix<T2, R, C>& m) {
39 template <
typename T1,
typename T2,
int R,
int C>
40 inline Eigen::Matrix<typename boost::math::tools::promote_args<T1, T2>::type, R,
42 subtract(
const Eigen::Matrix<T1, R, C>& m,
const T2& c) {
auto subtract(const matrix_cl &A, const matrix_cl &B)
Matrix subtraction on the OpenCL device Subtracts the second matrix from the first matrix and stores ...
void check_matching_dims(const char *function, const char *name1, const matrix_cl &y1, const char *name2, const matrix_cl &y2)
Check if two matrix_cls have the same dimensions.