Computes a determinant of a square matrix defined over a field.
- Template Parameters
-
ValueType | A type of a matrix element. |
- Parameters
-
[in] | matrix_elements | points to a two-dimensional array of elements representing the matrix. The size of the array is \(n^2\). |
| n | A number of columns and a number of rows of the matrix. |
- Returns
- The determinant of the matrix.
- Exceptions
-
An | exception is possible as a result of an attempt to calculate a multiplicative reciprocal of an element that does not have a multiplicative inversion. |