double determinant(double** a, int n)
Returns the determinant of the matrix a.
Parameters:
a | Matrix to find determinant for. |
---|---|
n | Size of a. |
Returns:
The determinant of the matrix a.
Usage:
double** a; double d; a = dmatrix(0, 3, 0, 3); // initialize the a[i][j] elements d = determinant(a, 4); free_dmatrix(a, 0, 3, 0);
Header:
#include "linalg.h"