11 case 1:
return M[0][0];
17 for (
unsigned int i=0; i<n; ++i)
18 for (
unsigned int j=0; j<n; ++j)
19 m(i,j)=double(M(i,j));
unsigned int cols() const
Return the number of columns.
calculates the determinant of a matrix
T vnl_determinant(vnl_matrix< T > const &M, bool balance=false)
evaluation using direct methods for sizes of 2x2, 3x3, and 4x4 or qr decomposition for other matrices...
unsigned int rows() const
Return the number of rows.