ILNumerics Ultimate VS

ILMathdet Method (InArraySingle)

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Determinant of square matrix.

[ILNumerics Computing Engine]

Namespace:  ILNumerics
Assembly:  ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Syntax

public static RetArray<float> det(
	InArray<float> A
)

Parameters

A
Type: ILNumericsInArraySingle
Input matrix (square).

Return Value

Type: RetArraySingle
Determinant of A.
Exceptions

ExceptionCondition
ArgumentException if A is not a square matrix.
Remarks

The determinant is computed by decomposing A into upper and lower triangular part using LU decomposition.

The determinant of a scalar matrix is the scalar itself. If A is empty an empty array will be returned.

[ILNumerics Computing Engine]

Examples

Creating a nonsingular 4x4 (float) matrix and it's determinant
Array<float> A = ILMath.counter<float>(1.0, 1.0, 4, 4);
            A[1, 0] = 0.0;  // ensure that A
            A[2, 3] = 0.0;  // has full rank
            A
            <Double> [4,4] 1...16 order:|
            1          5          9         13
            0          6         10         14
            3          7         11          0
            4          8         12         16
            det(A)
            //D
            <Double> [1,1] -360 order:|
See Also

Reference