determinant of a matrix | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

determinant of a matrix

how to compute determinant of any matrix using c++ program

18th Dec 2016, 12:31 PM
yonathan cherkos
yonathan cherkos - avatar
1 Resposta
+ 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 )
18th Dec 2016, 6:59 PM
Ɓlvaro