TNumber.Alg Method

Computes the cofactor of a square matrix for the specified row and column.

Cofactor for row i and column j is defined as minor for that row and column which is multiplied by (-1)^(i + j).

Definition

Namespace: SMath.Math.Numeric
Assembly: SMath.Math.Numeric (in SMath.Math.Numeric.dll) Version: 1.73.9126.0
C#
public TNumber Alg(
	int row,
	int col
)

Parameters

row  Int32
1-based index of row.
col  Int32
1-based index of column.

Return Value

TNumber
The value of cofactor for the specified row and column.

Exceptions

GeneralException Thrown unless obj is a square matrix or if row or col is out of range.

See Also