Automatic Differentiation
 
Loading...
Searching...
No Matches
trace_gen_quad_form.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Functions

template<typename TD , typename TA , typename TB , typename = require_all_eigen_t<TD, TA, TB>, typename = require_all_not_vt_var<TD, TA, TB>, typename = require_any_not_vt_arithmetic<TD, TA, TB>>
auto stan::math::trace_gen_quad_form (const TD &D, const TA &A, const TB &B)
 Return the trace of D times the quadratic form of B and A.
 
template<typename EigMatD , typename EigMatA , typename EigMatB , require_all_eigen_vt< std::is_arithmetic, EigMatD, EigMatA, EigMatB > * = nullptr>
double stan::math::trace_gen_quad_form (const EigMatD &D, const EigMatA &A, const EigMatB &B)
 Return the trace of D times the quadratic form of B and A.