summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 2b73209659..a2a3e16da4 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -1465,15 +1465,18 @@ class Vector
end
def elements_to_f
- collect{|e| e.to_f}
+ warn "#{caller(1)[0]}: warning: Vector#elements_to_f is deprecated"
+ map(&:to_f)
end
def elements_to_i
- collect{|e| e.to_i}
+ warn "#{caller(1)[0]}: warning: Vector#elements_to_i is deprecated"
+ map(&:to_i)
end
def elements_to_r
- collect{|e| e.to_r}
+ warn "#{caller(1)[0]}: warning: Vector#elements_to_r is deprecated"
+ map(&:to_r)
end
#