Class: Yadriggy::C::CType::FloatCArray
- Inherits:
-
CArray
- Object
- IvarObj
- CArray
- Yadriggy::C::CType::FloatCArray
show all
- Defined in:
- lib/yadriggy/c/ctype.rb
Overview
Array of floating point numbers available only in C.
Constant Summary
Float32Array, FloatArray, Int, IntArray, Void
Instance Method Summary
collapse
#arrayof, #typedecl
Instance Method Details
#[](*indexes) ⇒ Object
103
104
105
106
107
|
# File 'lib/yadriggy/c/ctype.rb', line 103
def [](*indexes)
typedecl foreign: Float
check_range(indexes)
raise 'FloatCArray is not available in Ruby' unless @debug
end
|
#[]=(*indexes) ⇒ Object
109
110
111
112
113
|
# File 'lib/yadriggy/c/ctype.rb', line 109
def []=(*indexes)
typedecl foreign: Void
check_range(indexes[0, indexes.size - 1])
raise 'FloatCArray is not available in Ruby' unless @debug
end
|
#type ⇒ Object
99
100
101
|
# File 'lib/yadriggy/c/ctype.rb', line 99
def type()
RubyClass::Float
end
|