| NMathFunctionsSolve(FloatComplexMatrix, FloatComplexMatrix) Method |
Solves the linear system AX = B.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static FloatComplexMatrix Solve(
FloatComplexMatrix A,
FloatComplexMatrix B
)
Public Shared Function Solve (
A As FloatComplexMatrix,
B As FloatComplexMatrix
) As FloatComplexMatrix
public:
static FloatComplexMatrix^ Solve(
FloatComplexMatrix^ A,
FloatComplexMatrix^ B
)
static member Solve :
A : FloatComplexMatrix *
B : FloatComplexMatrix -> FloatComplexMatrix
Parameters
- A FloatComplexMatrix
- A coefficient matrix.
- B FloatComplexMatrix
- The matrix of right hand sides. B must have the
same number of rows as the matrix A.
Return Value
FloatComplexMatrixA matrix with the same number of columns as
B containing
the solutions.
Exceptions Remarks
The
ith column of
X,
X(i), is
the solution to the equation
AX(i) = B(i), where
B(i) is the
ith column of
B.
Note that a FloatComplexLUFact instance is created with each call. If you are calling
Solve() repeatedly (inside a loop, for example), and the coefficient matrix
A
is not changing between calls, this is more efficient:
Example
FloatComplexLUFact fact = new FloatComplexLUFact( A, false );
...
fact.Solve( B );
See Also