Sha256: fc719042ccf1f1a00c4ce370edd6b8909c47fef6f7ef90e74c0884ccac7bc9e2
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
module CsrMatrix module Functions def determinant() m = Matrix.rows(self.decompose) m.det() end def det() self.determinant() end def rank() m = Matrix.rows(self.decompose) m.rank() end def round(ndig = 0) m = Matrix.rows(self.decompose) self.build_from_array(m.round(ndig).to_a()) end def trace() m = Matrix.rows(self.decompose) m.trace() end def tr() self.trace() end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
csrmatrix-1.0.0 | lib/csrmatrix/functions.rb |