﻿ILMath.det Method (InArray(Double))

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<double> det(
InArray<double> A
)```

#### Parameters

A
Type: ILNumericsInArrayDouble
Input matrix (square).

#### Return Value

Type: RetArrayDouble
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 (double) matrix and it's determinant
```Array<double> A = ILMath.counter<double>(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:|```