@@ -33,7 +33,7 @@ template <typename Mat1, typename Mat2,
3333 require_any_eigen_vt<is_var, Mat1, Mat2>* = nullptr >
3434inline Eigen::Matrix<return_type_t <Mat1, Mat2>, 1 , Mat1::ColsAtCompileTime>
3535columns_dot_product (const Mat1& v1, const Mat2& v2) {
36- check_matching_sizes ( " dot_product " , " v1" , v1, " v2" , v2);
36+ check_matching_dims ( " check_matching_dims " , " v1" , v1, " v2" , v2);
3737 Eigen::Matrix<var, 1 , Mat1::ColsAtCompileTime> ret (1 , v1.cols ());
3838 for (size_type j = 0 ; j < v1.cols (); ++j) {
3939 ret.coeffRef (j) = dot_product (v1.col (j), v2.col (j));
@@ -62,7 +62,7 @@ template <typename Mat1, typename Mat2,
6262 require_all_matrix_t <Mat1, Mat2>* = nullptr ,
6363 require_any_var_matrix_t <Mat1, Mat2>* = nullptr >
6464inline auto columns_dot_product (const Mat1& v1, const Mat2& v2) {
65- check_matching_sizes (" columns_dot_product" , " v1" , v1, " v2" , v2);
65+ check_matching_dims (" columns_dot_product" , " v1" , v1, " v2" , v2);
6666 using inner_return_t = decltype (
6767 (value_of (v1).array () * value_of (v2).array ()).colwise ().sum ().matrix ());
6868 using return_t = return_var_matrix_t <inner_return_t , Mat1, Mat2>;
0 commit comments