Automatic Differentiation
 
Loading...
Searching...
No Matches
check_multiplicable.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_CHECK_MULTIPLICABLE_HPP
2#define STAN_MATH_PRIM_ERR_CHECK_MULTIPLICABLE_HPP
3
8
9namespace stan {
10namespace math {
11
29template <typename T1, typename T2>
30inline void check_multiplicable(const char* function, const char* name1,
31 const T1& y1, const char* name2, const T2& y2) {
32 check_size_match(function, "Columns of ", name1, y1.cols(), "Rows of ", name2,
33 y2.rows());
34}
35} // namespace math
36} // namespace stan
37#endif
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_size_match(const char *function, const char *name_i, T_size1 i, const char *name_j, T_size2 j)
Check if the provided sizes match.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...