IMSL C# Numerical Library

ComplexSparseMatrix.Add Method 

Performs element-wise addition of two complex sparse matrices A, B of type ComplexSparseMatrix, C \leftarrow \alpha A + \beta B.

public static ComplexSparseMatrix Add(
   Complex alpha,
   Complex beta,
   ComplexSparseMatrix A,
   ComplexSparseMatrix B
);

Parameters

alpha
A Complex scalar value applied to ComplexSparseMatrix A.
beta
A Complex scalar value applied to ComplexSparseMatrix B.
A
A ComplexSparseMatrix matrix.
B
A ComplexSparseMatrix matrix.

Return Value

A ComplexSparseMatrix matrix representing the computed sum.

Exceptions

Exception Type Condition
ArgumentException is thrown when the matrices are not of the same size.

See Also

ComplexSparseMatrix Class | Imsl.Math Namespace