Performs element-wise addition of two real sparse matrices
A,
B of type
SparseMatrix,
Namespace: Imsl.MathAssembly: ImslCS (in ImslCS.dll) Version: 6.5.2.0
Syntax public static SparseMatrix Add(
double alpha,
double beta,
SparseMatrix A,
SparseMatrix B
)
Public Shared Function Add (
alpha As Double,
beta As Double,
A As SparseMatrix,
B As SparseMatrix
) As SparseMatrix
public:
static SparseMatrix^ Add(
double alpha,
double beta,
SparseMatrix^ A,
SparseMatrix^ B
)
static member Add :
alpha : float *
beta : float *
A : SparseMatrix *
B : SparseMatrix -> SparseMatrix
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 Exception | Condition |
---|
ArgumentException | is thrown when the
matrices are not of the same size.
|
See Also