Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ trace_inv_quad_form_ldlt() [1/2]

template<typename T , typename EigMat2 , typename = require_all_not_st_var<T, EigMat2>>
return_type_t< T, EigMat2 > stan::math::trace_inv_quad_form_ldlt ( LDLT_factor< T > &  A,
const EigMat2 &  B 
)
inline

Compute the trace of an inverse quadratic form.

I.E., this computes trace(B^T A^-1 B) where the LDLT_factor of A is provided.

Template Parameters
Ttype of the first matrix and the LDLT_factor
EigMat2type of the second matrix
Parameters
Afirst matrix as LDLT
Bsecond matrix

Definition at line 28 of file trace_inv_quad_form_ldlt.hpp.