Class: GSL4r::Block::GSL_Block_Cast
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- GSL4r::Block::GSL_Block_Cast
- Includes:
- BlockLayout
- Defined in:
- lib/gsl4r/block.rb
Instance Method Summary collapse
Methods included from BlockLayout
Instance Method Details
#length ⇒ Object
76 77 78 |
# File 'lib/gsl4r/block.rb', line 76 def length return self[:size] end |
#set(a) ⇒ Object
84 85 86 |
# File 'lib/gsl4r/block.rb', line 84 def set( a ) self[:data].put_array_of_double(0,a) end |
#values ⇒ Object
80 81 82 |
# File 'lib/gsl4r/block.rb', line 80 def values return self[:data].get_array_of_double(0,length) end |