Click or drag to resize

FloatTriDiagMatrixSubtract(Single, FloatTriDiagMatrix) Method

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

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static FloatTriDiagMatrix Subtract(
	float a,
	FloatTriDiagMatrix A
)

Parameters

a  Single
A scalar.
A  FloatTriDiagMatrix
A tridiagonal matrix.

Return Value

FloatTriDiagMatrix
A tridiagonal matrix, B, with B[i,j] = a - A[i,j] whenever j - i is less than or equal to the 1, or i - j is less than or equal to 1.
See Also