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 *(
	DoubleCsrSparseMatrix A,
	double s
)
Visual Basic (Declaration)
Public Shared Operator * ( _
	A As DoubleCsrSparseMatrix, _
	s As Double _
) As DoubleCsrSparseMatrix
Visual C++
public:
static DoubleCsrSparseMatrix^ operator *(
	DoubleCsrSparseMatrix^ A, 
	double s
)

Parameters

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

Return Value

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

See Also