Click or drag to resize

FloatTriDiagMatrixSubtract(FloatTriDiagMatrix, Single) Method

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

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

Parameters

A  FloatTriDiagMatrix
A tridiagonal matrix.
a  Single
A scalar.

Return Value

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