Method: Cumo::NArray#to_i
- Defined in:
- lib/cumo/narray/extra.rb
#to_i ⇒ Object
130 131 132 133 134 135 136 137 |
# File 'lib/cumo/narray/extra.rb', line 130 def to_i if size==1 self.extract_cpu.to_i else # convert to Int? raise TypeError, "can't convert #{self.class} into Integer" end end |