@@ -235,7 +235,7 @@ def pretty_print(q) #:nodoc:
235235 #
236236 # If your dtype is :object and you are converting from :dense to a sparse type, it is recommended that you
237237 # provide a :default, as 0 may behave differently from its Float or Complex equivalent. If no option
238- # is given, Fixnum 0 will be used.
238+ # is given, Integer 0 will be used.
239239 def cast ( *params )
240240 if ( params . size > 0 && params [ 0 ] . is_a? ( Hash ) )
241241 opts = {
@@ -419,7 +419,7 @@ def to_flat_array
419419
420420 #
421421 # call-seq:
422- # size -> Fixnum
422+ # size -> Integer
423423 #
424424 # Returns the total size of the NMatrix based on its shape.
425425 #
@@ -566,12 +566,12 @@ def last
566566 # the new and old shapes' components must be equal.
567567 #
568568 # * *Arguments* :
569- # - +new_shape+ -> Array of positive Fixnums .
569+ # - +new_shape+ -> Array of positive Integers .
570570 # * *Returns* :
571571 # - A copy with a different shape.
572572 #
573573 def reshape new_shape , *shapes
574- if new_shape . is_a? Fixnum
574+ if new_shape . is_a? Integer
575575 newer_shape = [ new_shape ] +shapes
576576 else # new_shape is an Array
577577 newer_shape = new_shape
@@ -593,13 +593,13 @@ def reshape new_shape,*shapes
593593 # the new and old shapes' components must be equal.
594594 #
595595 # * *Arguments* :
596- # - +new_shape+ -> Array of positive Fixnums .
596+ # - +new_shape+ -> Array of positive Integer .
597597 #
598598 def reshape! new_shape , *shapes
599599 if self . is_ref?
600600 raise ( ArgumentError , "This operation cannot be performed on reference slices" )
601601 else
602- if new_shape . is_a? Fixnum
602+ if new_shape . is_a? Integer
603603 shape = [ new_shape ] +shapes
604604 else # new_shape is an Array
605605 shape = new_shape
@@ -690,7 +690,7 @@ def transpose(permute = nil)
690690 #
691691 # * *Arguments* :
692692 # - +matrices+ -> one or more matrices
693- # - +rank+ -> Fixnum (for rank); alternatively, may use :row, :column, or
693+ # - +rank+ -> Integer (for rank); alternatively, may use :row, :column, or
694694 # :layer for 0, 1, 2, respectively
695695 def concat ( *matrices )
696696 rank = nil
0 commit comments