|
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 \).
|
|