![]() |
Stan Math Library
5.3.0
Automatic Differentiation
|
|
inline |
Compute the trace of the product of two matrices with forward-mode autodiff support.
| EigMat1 | A type either inheriting from Eigen::DenseBase or a var_value with an inner type inheriting from Eigen::DenseBase |
| EigMat2 | A type either inheriting from Eigen::DenseBase or a var_value with an inner type inheriting from Eigen::DenseBase |
| A | first matrix (m x n) |
| B | second matrix (n x m) |
| std::invalid_argument | if A and B have incompatible dimensions |
Definition at line 29 of file trace_dot.hpp.