Class: NArray
- Inherits:
-
Object
- Object
- NArray
- Defined in:
- lib/gs2crmod/gsl_data_3d.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
._load(buf) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/gs2crmod/gsl_data_3d.rb', line 6 def self._load buf h = Marshal.load buf typecode = h[:typecode] shape = h[:shape] data = h[:data] to_na data, typecode, *shape end |
Instance Method Details
#_dump(*ignored) ⇒ Object
3 4 5 |
# File 'lib/gs2crmod/gsl_data_3d.rb', line 3 def _dump *ignored Marshal.dump :typecode => typecode, :shape => shape, :data => to_s end |
#inspect ⇒ Object
13 14 15 16 |
# File 'lib/gs2crmod/gsl_data_3d.rb', line 13 def inspect #ep "called inspect" "#{self.class}.to_narray(#{self.to_a.inspect})" end |