summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-15 07:35:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-15 07:35:14 +0000
commit9ef8a2a5db011a0071a4232b368b1cc4d2346351 (patch)
tree566ed5a268701be4d60000769972440d4b6c553c /lib/matrix.rb
parentbdfce148a7f85a14e24c6365e72ba59241c4be9f (diff)
* lib/matrix.rb: remove elements conversion to_f, to_i, to_r.
* lib/cgi/session/pstore.rb: add new file. * process.c (proc_getgroups, proc_setmaxgroups): fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb53
1 files changed, 1 insertions, 52 deletions
diff --git a/lib/matrix.rb b/lib/matrix.rb
index fcb16d6c42..8e56fcbd97 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -126,13 +126,7 @@
# column_vectors
# array of column vectors
# to_a
-# converts each element to Array
-# to_f
-# converts each element to Float
-# to_i
-# converts each element to Integer
-# to_r
-# converts each element to Rational
+# converts to Array of Arrays
# PRINTING:
# to_s
# returns string representation
@@ -163,9 +157,6 @@
# CONVERTING:
# covector
# to_a
-# to_f
-# to_i
-# to_r
# coerce(other)
# PRINTING:
# to_s
@@ -936,27 +927,6 @@ class Matrix
@rows.collect{|row| row.collect{|e| e}}
end
- #
- # Applies #to_f to all elements to return a new matrix.
- #
- def to_f
- collect{|e| e.to_f}
- end
-
- #
- # Applies #to_i to all elements to return a new matrix.
- #
- def to_i
- collect{|e| e.to_i}
- end
-
- #
- # Applies #to_r to all elements to return a new matrix.
- #
- def to_r
- collect{|e| e.to_r}
- end
-
#--
# PRINTING -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#++
@@ -1315,27 +1285,6 @@ class Vector
end
#
- # Applies #to_f to each element to produce a new vector.
- #
- def to_f
- collect{|e| e.to_f}
- end
-
- #
- # Applies #to_i to each element to produce a new vector.
- #
- def to_i
- collect{|e| e.to_i}
- end
-
- #
- # Applies #to_f to each element to produce a new vector.
- #
- def to_r
- collect{|e| e.to_r}
- end
-
- #
# FIXME: describe Vector#coerce.
#
def coerce(other)