Subtracts the non-zero elements of a banded matrix from a scalar.

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

Syntax

C#
public static FloatSymBandMatrix Subtract(
	float a,
	FloatSymBandMatrix A
)
Visual Basic (Declaration)
Public Shared Function Subtract ( _
	a As Single, _
	A As FloatSymBandMatrix _
) As FloatSymBandMatrix
Visual C++
public:
static FloatSymBandMatrix^ Subtract(
	float a, 
	FloatSymBandMatrix^ A
)

Parameters

a
Type: System..::.Single
A scalar.
A
Type: CenterSpace.NMath.Matrix..::.FloatSymBandMatrix
A banded matrix.

Return Value

A banded matrix, B, with the same upper and lower bandwidths as A, and B[i,j] = a - A[i,j] whenever j - i is less than or equal to the upper bandwidth of A, or i - j is less than or equal to the lower bandwidth of A.

See Also