Subtracts two tridiagonal matrices.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleTriDiagMatrix Subtract( DoubleTriDiagMatrix A, DoubleTriDiagMatrix B ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Subtract ( _ A As DoubleTriDiagMatrix, _ B As DoubleTriDiagMatrix _ ) As DoubleTriDiagMatrix |
| Visual C++ |
|---|
public: static DoubleTriDiagMatrix^ Subtract( DoubleTriDiagMatrix^ A, DoubleTriDiagMatrix^ B ) |
Parameters
- A
- Type: CenterSpace.NMath.Matrix..::.DoubleTriDiagMatrix
A tridiagonal matrix.
- B
- Type: CenterSpace.NMath.Matrix..::.DoubleTriDiagMatrix
A tridiagonal matrix.
Return Value
A tridiagonal matrix C where C[i,j] = A[i,j] - B[i,j].
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the two matrices do not have the same dimensions. |