Project

General

Profile

Bug #7582 ยป matrix.rb.lup.patch

pypypy567 (py _), 12/18/2012 01:15 AM

View differences:

lib/matrix.rb (working copy)
# l.lower_triangular? # => true
# u.upper_triangular? # => true
# p.permutation? # => true
# l * u == a * p # => true
# l * u == p * a # => true
# a.lup.solve([2, 5]) # => Vector[(1/1), (1/2)]
#
def lup
    (1-1/1)