Saurabh Shah
Saurabh Shah
I tried the above matrix and it gives me same ZeroDivisionError but try this matrix: n= NMatrix.new(3,[1,2,3,4,5,6,7,8,9]) It has determinant zero but still it gives an inverse matrix!
I see that the matrix inverse is calculated using Gauss-Jordan elimination method. So is it using NMatrix#det or NMatrix#det_exact to check matrix is non-singular? Because if not, then there must...
Yes, I sent mail indicating the same. Problem is #inverse_exact method is not correctly implemented in the gem. If assigned, I would like to execute it correctly.
Can you give more details on how the sorting needs to be done? Like for a 2D matrix should it sort along the row or column according to the dimension...
Okay so the operations can be: => A specified row or column can be sorted. => All the rows or all the columns can be sorted. => Whole matrix can...