0
determinant of a matrix
how to compute determinant of any matrix using c++ program
1 Answer
+ 2
Try using recursion: to compute the det of a matrix, take any row or column, then iterate over it, then compute the determinant of the matrix result from dropping the row and column of the present element. Multiply this det by the present element and an alternating +1 or -1.
(edit: have a look at https://en.m.wikipedia.org/wiki/Determinant#Laplace.27s_formula_and_the_adjugate_matrix )