Performs element-wise addition of two complex sparse matrices
A, B of type ComplexSparseMatrix,


Namespace:
Imsl.Math
Assembly:
ImslCS (in ImslCS.dll) Version: 6.5.0.0
Syntax
C# |
---|
public static ComplexSparseMatrix Add( Complex alpha, Complex beta, ComplexSparseMatrix A, ComplexSparseMatrix B ) |
Visual Basic (Declaration) |
---|
Public Shared Function Add ( _ alpha As Complex, _ beta As Complex, _ A As ComplexSparseMatrix, _ B As ComplexSparseMatrix _ ) As ComplexSparseMatrix |
Visual C++ |
---|
public: static ComplexSparseMatrix^ Add( Complex alpha, Complex beta, ComplexSparseMatrix^ A, ComplexSparseMatrix^ B ) |
Parameters
- alpha
- Type: Imsl.Math..::.Complex
A Complex scalar value applied to ComplexSparseMatrix A.
- beta
- Type: Imsl.Math..::.Complex
A Complex scalar value applied to ComplexSparseMatrix B.
- A
- Type: Imsl.Math..::.ComplexSparseMatrix
A ComplexSparseMatrix matrix.
- B
- Type: Imsl.Math..::.ComplexSparseMatrix
A ComplexSparseMatrix matrix.
Return Value
A ComplexSparseMatrix matrix representing the computed sum.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentException | is thrown when the matrices are not of the same size. |