Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ columns_dot_product() [3/4]

template<typename Mat1 , typename Mat2 , require_all_eigen_t< Mat1, Mat2 > * = nullptr, require_all_not_eigen_vt< is_var, Mat1, Mat2 > * = nullptr>
auto stan::math::columns_dot_product ( Mat1 &&  v1,
Mat2 &&  v2 
)
inline

Returns the dot product of columns of the specified matrices.

Template Parameters
Mat1type of the first matrix (must be derived from Eigen::MatrixBase)
Mat2type of the second matrix (must be derived from Eigen::MatrixBase)
Parameters
v1Matrix of first vectors.
v2Matrix of second vectors.
Returns
Dot product of the vectors.
Exceptions
std::domain_errorIf the vectors are not the same size or if they are both not vector dimensioned.

This overload is used when at least one of Mat1 and Mat2 is a var_value<T> where T inherits from EigenBase. The other argument can be another var_value or a type that inherits from EigenBase.

Template Parameters
Mat1type of the first matrix
Mat2type of the second matrix
Parameters
v1Matrix of first vectors.
v2Matrix of second vectors.
Returns
Dot product of the vectors.
Exceptions
std::domain_errorIf the vectors are not the same size or if they are both not vector dimensioned.

Definition at line 27 of file columns_dot_product.hpp.