ILNumerics - Technical Application Development
Assembly: ILNumerics.Computing (in ILNumerics.Computing.dll) Version: 5.5.0.0 (5.5.7503.3146)
Determinant of A.
Creating a nonsingular 4x4 (float) matrix and it's determinant
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
Parameters
- A
- Type: ILNumericsInArraySingle
Input matrix (square).
Return Value
Type: RetArraySingleDeterminant of A.
Exceptions
Exception | Condition |
---|---|
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
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