Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

10.52 solve()

PrototypesHeader 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>

10.52.1 Description

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.


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.