Method: CsrMatrix::Functions#determinant
- Defined in:
- lib/csrmatrix/functions.rb
#determinant ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/csrmatrix/functions.rb', line 12 def determinant() # identifies the determinant of a matrix is_invariant? if !self.square?() raise Exceptions::MatrixDimException.new, "Matrix is not square." return false end m = Matrix.rows(self.decompose) return m.det() end |