Click or drag to resize
SparseMatrixAdd Method
Performs element-wise addition of two real sparse matrices A, B of type SparseMatrix,  C \leftarrow \alpha A + \beta B.

Namespace: Imsl.Math
Assembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax
public static SparseMatrix Add(
	double alpha,
	double beta,
	SparseMatrix A,
	SparseMatrix B
)

Parameters

alpha
Type: SystemDouble
A double scalar value applied to SparseMatrix A.
beta
Type: SystemDouble
A double scalar value applied to SparseMatrix B.
A
Type: Imsl.MathSparseMatrix
A SparseMatrix matrix.
B
Type: Imsl.MathSparseMatrix
A SparseMatrix matrix.

Return Value

Type: SparseMatrix
A SparseMatrix matrix representing the computed sum.
Exceptions
ExceptionCondition
ArgumentException is thrown when the matrices are not of the same size.
See Also