Prototypes | Header File(s) | |
template <class T> | ||
RWMathVec<T> |
solve(const RWGenMat<T>& m const RWMathVec<T>& b) |
<rw/math/genmat.h> <rw/math/genfact.h> <rw/math/mathvec.h> |
RWMathVec<T> |
solve(const RWGenFact<T>& m, const RWMathVec<T>& b) |
<rw/math/genfact.h> <rw/math/mathvec.h> |
RWGenMat<T> |
solve(const RWGenMat<T>&m, constRWGenMat<T>& b |
<rw/math/genmat.h> <rw/math/genfact.h> |
RWGenMat<T> |
solve(const RWGenFact<T>&m, constRWGenFact<T>& b |
<rw/math/genfact.h> |
Calculates the solution to the matrix equation A*x = b, where m is an LU factorization constructed from the matrix A.
If the factorization m is invalid, perhaps because the original matrix A was singular, an exception with value LPAK_CANTSOLVE occurs. If the number of elements in x does not match the order of A, an exception with value LPAK_VECLENGTH occurs.