mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* misc/ruby-mode.el (ruby-parse-partial): need to parse "/=" as
self assignment operator, not regex. [ruby-talk:227324] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3acd34fd64
commit
cd3a5e2bb2
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Dec 5 00:59:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* misc/ruby-mode.el (ruby-parse-partial): need to parse "/=" as
|
||||||
|
self assignment operator, not regex. [ruby-talk:227324]
|
||||||
|
|
||||||
Tue Dec 5 00:19:14 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Dec 5 00:19:14 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* intern.h, object.c, variable.c (rb_mod_constants): added an optional
|
* intern.h, object.c, variable.c (rb_mod_constants): added an optional
|
||||||
|
|
|
@ -745,7 +745,7 @@ class Matrix
|
||||||
det *= -1
|
det *= -1
|
||||||
end
|
end
|
||||||
(k + 1).upto(size) do |i|
|
(k + 1).upto(size) do |i|
|
||||||
q = a[i][k] / a[k][k]
|
q = a[i][k].quo(a[k][k])
|
||||||
k.upto(size) do |j|
|
k.upto(size) do |j|
|
||||||
a[i][j] -= a[k][j] * q
|
a[i][j] -= a[k][j] * q
|
||||||
end
|
end
|
||||||
|
@ -846,7 +846,7 @@ class Matrix
|
||||||
a[pi], a[i] = a[i], a[pi]
|
a[pi], a[i] = a[i], a[pi]
|
||||||
end
|
end
|
||||||
(pi + 1 ... a_row_size).each do |k|
|
(pi + 1 ... a_row_size).each do |k|
|
||||||
q = a[k][j] / a[pi][j]
|
q = a[k][j].quo(a[pi][j])
|
||||||
(pi ... a_column_size).each do |j0|
|
(pi ... a_column_size).each do |j0|
|
||||||
a[k][j0] -= q * a[pi][j0]
|
a[k][j0] -= q * a[pi][j0]
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue