Adds two upper triangular matrices.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public static DoubleUpperTriMatrix Add( DoubleUpperTriMatrix A, DoubleUpperTriMatrix B ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Add ( _ A As DoubleUpperTriMatrix, _ B As DoubleUpperTriMatrix _ ) As DoubleUpperTriMatrix |
| Visual C++ |
|---|
public: static DoubleUpperTriMatrix^ Add( DoubleUpperTriMatrix^ A, DoubleUpperTriMatrix^ B ) |
Parameters
- A
- Type: CenterSpace.NMath.Matrix..::.DoubleUpperTriMatrix
an upper triangular matrix.
- B
- Type: CenterSpace.NMath.Matrix..::.DoubleUpperTriMatrix
an upper triangular matrix.
Return Value
an upper triangular 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. |