Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Compute trace(B^T A B).
This overload handles arguments where one of Mat1 or Mat2 are var_value<T>
where T
is an Eigen type. The other type can also be a var_value
or it can be a type that inherits from EigenBase
Mat1 | type of the first matrix |
Mat2 | type of the second matrix |
A | matrix |
B | matrix |
std::domain_error | if A is not square |
std::domain_error | if A cannot be multiplied by B |
Definition at line 118 of file trace_quad_form.hpp.