1#ifndef STAN_MATH_PRIM_ERR_IS_MATCHING_DIMS_HPP
2#define STAN_MATH_PRIM_ERR_IS_MATCHING_DIMS_HPP
20template <
typename EigMat1,
typename EigMat2,
21 require_all_matrix_t<EigMat1, EigMat2>* =
nullptr>
39template <
bool check_compile,
typename EigMat1,
typename EigMat2,
42 return !(check_compile
43 && (EigMat1::RowsAtCompileTime != EigMat2::RowsAtCompileTime
44 || EigMat1::ColsAtCompileTime != EigMat2::ColsAtCompileTime))
require_all_t< is_matrix< std::decay_t< Types > >... > require_all_matrix_t
Require all of the types satisfy is_matrix.
bool is_size_match(T_size1 i, T_size2 j)
Return true if the provided sizes match.
bool is_matching_dims(const EigMat1 &y1, const EigMat2 &y2)
Return true if the two matrices are of the same size.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...