summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 4821bababf..cf2f63765a 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -219,7 +219,6 @@ class Matrix
row[j] = values[j]
row
}
- self
rows(rows, false)
end
@@ -897,7 +896,7 @@ class Vector
# ARITHMETIC
- def *(x) "is matrix or number"
+ def *(x)
case x
when Numeric
els = @elements.collect{|e| e * x}