Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the quadratic form \( B^T A B \) of a symmetric matrix.
Symmetry of the resulting matrix is guaranteed.
EigMat1 | type of the first (symmetric) matrix |
EigMat2 | type of the second matrix |
A | symmetric matrix |
B | second matrix |
B
is a column vector returns a scalar. std::invalid_argument | if A is not symmetric, or if A cannot be multiplied by B |
Definition at line 34 of file quad_form_sym.hpp.