![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Return the quadratic form \( B^T A B \).
Symmetry of the resulting matrix is not guaranteed due to numerical precision.
| EigMat1 | type of the first (square) matrix |
| EigMat2 | type of the second matrix |
| A | square matrix |
| B | second matrix |
| std::invalid_argument | if A is not square, or if A cannot be multiplied by B |
Definition at line 31 of file quad_form.hpp.