summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-16 06:02:13 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-16 06:02:13 +0000
commiteda7e396ea8b4588eeb4c62e17eae559db12bf6a (patch)
treee8369a7aeb61db796e12a6f52d323777637ea9ad /lib
parent88a5c7a81ca7484b62d2cd85fc06e0d9cde86f0d (diff)
* lib/matrix.rb (Scalar#/): fix bug whereby (any numeric)/(any Matrix) would raise an error
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@24953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/matrix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 632b5fe266..17a0b50718 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -894,7 +894,7 @@ class Matrix
when Vector
Scalar.Raise WrongArgType, other.class, "Numeric or Scalar or Matrix"
when Matrix
- self * _M.inverse
+ self * other.inverse
else
x, y = other.coerce(self)
x / y