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

◆ mdivide_left_spd() [4/4]

template<typename T1 , typename T2 , require_all_matrix_t< T1, T2 > * = nullptr, require_any_var_matrix_t< T1, T2 > * = nullptr>
auto stan::math::mdivide_left_spd ( const T1 &  A,
const T2 &  B 
)
inline

Returns the solution of the system Ax=B where A is symmetric positive definite.

This overload handles arguments where one of T1 or T2 are var_value<T> where T is an Eigen type. The other type can also be a var_value or it can be a matrix type that inherits from EigenBase

Template Parameters
T1type of the first matrix
T2type of the right-hand side matrix or vector
Parameters
AMatrix.
BRight hand side matrix or vector.
Returns
x = A^-1 B, solution of the linear system.
Exceptions
std::domain_errorif A is not square or B does not have as many rows as A has columns.

Definition at line 261 of file mdivide_left_spd.hpp.