lup_decomposition.rb.det.patch

py _, 12/25/2012 07:39 AM

Download (474 Bytes)

View differences:

lib/matrix/lup_decomposition.rb (working copy)
77 77

  
78 78
    def det
79 79
      if (@row_count != @column_count)
80
        Matrix.Raise Matrix::ErrDimensionMismatch unless square?
80
        Matrix.Raise Matrix::ErrDimensionMismatch
81 81
      end
82 82
      d = @pivot_sign
83 83
      @column_count.times do |j|