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 |
std::invalid_argument | if A is not symmetric, or if A cannot be multiplied by B |
Definition at line 30 of file quad_form_sym.hpp.