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

◆ mdivide_left() [3/4]

template<typename T1 , typename T2 , require_all_eigen_vt< std::is_arithmetic, T1, T2 > * = nullptr>
Eigen::Matrix< return_type_t< T1, T2 >, T1::RowsAtCompileTime, T2::ColsAtCompileTime > stan::math::mdivide_left ( const T1 &  A,
const T2 &  b 
)
inline

Returns the solution of the system Ax=b.

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 the rows of b don't match the size of A.

Definition at line 27 of file mdivide_left.hpp.