ruby-changes:58972
From: Hiroshi <ko1@a...>
Date: Sat, 30 Nov 2019 11:39:54 +0900 (JST)
Subject: [ruby-changes:58972] 0c59bfae0a (master): Also replace E2MM to standard exception class
https://git.ruby-lang.org/ruby.git/commit/?id=0c59bfae0a From 0c59bfae0a3a9f5a3420a1eac42753480d8d95f7 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Fri, 29 Nov 2019 17:29:21 +0900 Subject: Also replace E2MM to standard exception class diff --git a/lib/matrix/lup_decomposition.rb b/lib/matrix/lup_decomposition.rb index c001770..e37def7 100644 --- a/lib/matrix/lup_decomposition.rb +++ b/lib/matrix/lup_decomposition.rb @@ -78,7 +78,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix/lup_decomposition.rb#L78 def det if (@row_count != @column_count) - Matrix.Raise Matrix::ErrDimensionMismatch + raise Matrix::ErrDimensionMismatch end d = @pivot_sign @column_count.times do |j| @@ -94,11 +94,11 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix/lup_decomposition.rb#L94 def solve b if (singular?) - Matrix.Raise Matrix::ErrNotRegular, "Matrix is singular." + raise Matrix::ErrNotRegular, "Matrix is singular." end if b.is_a? Matrix if (b.row_count != @row_count) - Matrix.Raise Matrix::ErrDimensionMismatch + raise Matrix::ErrDimensionMismatch end # Copy right hand side with pivoting @@ -128,7 +128,7 @@ class Matrix https://github.com/ruby/ruby/blob/trunk/lib/matrix/lup_decomposition.rb#L128 else # same algorithm, specialized for simpler case of a vector b = convert_to_array(b) if (b.size != @row_count) - Matrix.Raise Matrix::ErrDimensionMismatch + raise Matrix::ErrDimensionMismatch end # Copy right hand side with pivoting -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/