Multiply a scalar and a sparse matrix.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public static DoubleCsrSparseMatrix operator *(
	double s,
	DoubleCsrSparseMatrix A
)
Visual Basic (Declaration)
Public Shared Operator * ( _
	s As Double, _
	A As DoubleCsrSparseMatrix _
) As DoubleCsrSparseMatrix
Visual C++
public:
static DoubleCsrSparseMatrix^ operator *(
	double s, 
	DoubleCsrSparseMatrix^ A
)

Parameters

s
Type: System..::.Double
A scalar.
A
Type: CenterSpace.NMath.Matrix..::.DoubleCsrSparseMatrix
A sparse matrix.

Return Value

A sparse matrix B where B[i,j] = s * A[i,j].

See Also