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

Go to the source code of this file.

Classes

class  stan::math::internal::quad_form_vari_alloc< Ta, Ra, Ca, Tb, Rb, Cb >
 
class  stan::math::internal::quad_form_vari< Ta, Ra, Ca, Tb, Rb, Cb >
 

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.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

template<typename Mat1 , typename Mat2 , require_all_matrix_t< Mat1, Mat2 > * = nullptr, require_any_var_matrix_t< Mat1, Mat2 > * = nullptr>
auto stan::math::internal::quad_form_impl (const Mat1 &A, const Mat2 &B, bool symmetric)
 Return the quadratic form \( B^T A B \).
 
template<typename EigMat1 , typename EigMat2 , require_all_eigen_t< EigMat1, EigMat2 > * = nullptr, require_not_eigen_col_vector_t< EigMat2 > * = nullptr, require_any_vt_var< EigMat1, EigMat2 > * = nullptr>
promote_scalar_t< var, EigMat2 > stan::math::quad_form (const EigMat1 &A, const EigMat2 &B, bool symmetric=false)
 Return the quadratic form \( B^T A B \).
 
template<typename EigMat , typename ColVec , require_eigen_t< EigMat > * = nullptr, require_eigen_col_vector_t< ColVec > * = nullptr, require_any_vt_var< EigMat, ColVec > * = nullptr>
var stan::math::quad_form (const EigMat &A, const ColVec &B, bool symmetric=false)
 Return the quadratic form \( B^T A B \).
 
template<typename Mat1 , typename Mat2 , require_all_matrix_t< Mat1, Mat2 > * = nullptr, require_not_col_vector_t< Mat2 > * = nullptr, require_any_var_matrix_t< Mat1, Mat2 > * = nullptr>
auto stan::math::quad_form (const Mat1 &A, const Mat2 &B, bool symmetric=false)
 Return the quadratic form \( B^T A B \).
 
template<typename Mat , typename Vec , require_matrix_t< Mat > * = nullptr, require_col_vector_t< Vec > * = nullptr, require_any_var_matrix_t< Mat, Vec > * = nullptr>
var stan::math::quad_form (const Mat &A, const Vec &B, bool symmetric=false)
 Return the quadratic form \( B^T A B \).