Module: Kernel
- Defined in:
- yard-stubs/carray_cast.rb
Overview
Container for the global CA_* cast shorthands installed by
CArray (via rb_define_global_function). Each CA_<TYPE>(obj)
is a top-level function that coerces obj (a CArray, Array,
Numeric, or anything castable) into a CArray of the named element
type, equivalent to obj.to_ca.as_type(:<type>).
CArray cast shorthands collapse
-
#CA_BOOLEAN(obj) ⇒ Object
Coerces
objinto a:booleanCArray. -
#CA_BYTE(obj) ⇒ Object
Alias of #CA_UINT8.
-
#CA_CMPLX128(obj) ⇒ Object
Coerces
objinto a:cmplx128CArray. -
#CA_CMPLX64(obj) ⇒ Object
Coerces
objinto a:cmplx64CArray. -
#CA_COMPLEX(obj) ⇒ Object
Alias of #CA_CMPLX64.
-
#CA_DCOMPLEX(obj) ⇒ Object
Alias of #CA_CMPLX128.
-
#CA_DOUBLE(obj) ⇒ Object
Alias of #CA_FLOAT64.
-
#CA_FIXLEN(obj) ⇒ Object
Coerces
objinto a:fixlenCArray. -
#CA_FLOAT(obj) ⇒ Object
Alias of #CA_FLOAT32.
-
#CA_FLOAT32(obj) ⇒ Object
Coerces
objinto a:float32CArray. -
#CA_FLOAT64(obj) ⇒ Object
Coerces
objinto a:float64CArray. -
#CA_INT(obj) ⇒ Object
Alias of #CA_INT32.
-
#CA_INT16(obj) ⇒ Object
Coerces
objinto an:int16CArray. -
#CA_INT32(obj) ⇒ Object
Coerces
objinto an:int32CArray. -
#CA_INT64(obj) ⇒ Object
Coerces
objinto an:int64CArray. -
#CA_INT8(obj) ⇒ Object
Coerces
objinto an:int8CArray. -
#CA_OBJECT(obj) ⇒ Object
Coerces
objinto an:objectCArray. -
#CA_SHORT(obj) ⇒ Object
Alias of #CA_INT16.
-
#CA_SIZE(obj) ⇒ CArray
Coerces
objinto aCA_SIZE(platform native size) CArray. -
#CA_UINT16(obj) ⇒ Object
Coerces
objinto a:uint16CArray. -
#CA_UINT32(obj) ⇒ Object
Coerces
objinto a:uint32CArray. -
#CA_UINT64(obj) ⇒ Object
Coerces
objinto a:uint64CArray. -
#CA_UINT8(obj) ⇒ Object
Coerces
objinto a:uint8CArray.
Instance Method Details
#CA_BOOLEAN(obj) ⇒ Object
Coerces obj into a :boolean CArray. @return [CArray]
15 |
# File 'yard-stubs/carray_cast.rb', line 15 def CA_BOOLEAN(obj); end |
#CA_BYTE(obj) ⇒ Object
Alias of #CA_UINT8. @return [CArray]
49 |
# File 'yard-stubs/carray_cast.rb', line 49 def CA_BYTE(obj); end |
#CA_CMPLX128(obj) ⇒ Object
Coerces obj into a :cmplx128 CArray. @return [CArray]
39 |
# File 'yard-stubs/carray_cast.rb', line 39 def CA_CMPLX128(obj); end |
#CA_CMPLX64(obj) ⇒ Object
Coerces obj into a :cmplx64 CArray. @return [CArray]
37 |
# File 'yard-stubs/carray_cast.rb', line 37 def CA_CMPLX64(obj); end |
#CA_COMPLEX(obj) ⇒ Object
Alias of #CA_CMPLX64. @return [CArray]
59 |
# File 'yard-stubs/carray_cast.rb', line 59 def CA_COMPLEX(obj); end |
#CA_DCOMPLEX(obj) ⇒ Object
Alias of #CA_CMPLX128. @return [CArray]
61 |
# File 'yard-stubs/carray_cast.rb', line 61 def CA_DCOMPLEX(obj); end |
#CA_DOUBLE(obj) ⇒ Object
Alias of #CA_FLOAT64. @return [CArray]
57 |
# File 'yard-stubs/carray_cast.rb', line 57 def CA_DOUBLE(obj); end |
#CA_FIXLEN(obj) ⇒ Object
Coerces obj into a :fixlen CArray. @return [CArray]
46 |
# File 'yard-stubs/carray_cast.rb', line 46 def CA_FIXLEN(obj); end |
#CA_FLOAT(obj) ⇒ Object
Alias of #CA_FLOAT32. @return [CArray]
55 |
# File 'yard-stubs/carray_cast.rb', line 55 def CA_FLOAT(obj); end |
#CA_FLOAT32(obj) ⇒ Object
Coerces obj into a :float32 CArray. @return [CArray]
33 |
# File 'yard-stubs/carray_cast.rb', line 33 def CA_FLOAT32(obj); end |
#CA_FLOAT64(obj) ⇒ Object
Coerces obj into a :float64 CArray. @return [CArray]
35 |
# File 'yard-stubs/carray_cast.rb', line 35 def CA_FLOAT64(obj); end |
#CA_INT(obj) ⇒ Object
Alias of #CA_INT32. @return [CArray]
53 |
# File 'yard-stubs/carray_cast.rb', line 53 def CA_INT(obj); end |
#CA_INT16(obj) ⇒ Object
Coerces obj into an :int16 CArray. @return [CArray]
21 |
# File 'yard-stubs/carray_cast.rb', line 21 def CA_INT16(obj); end |
#CA_INT32(obj) ⇒ Object
Coerces obj into an :int32 CArray. @return [CArray]
25 |
# File 'yard-stubs/carray_cast.rb', line 25 def CA_INT32(obj); end |
#CA_INT64(obj) ⇒ Object
Coerces obj into an :int64 CArray. @return [CArray]
29 |
# File 'yard-stubs/carray_cast.rb', line 29 def CA_INT64(obj); end |
#CA_INT8(obj) ⇒ Object
Coerces obj into an :int8 CArray. @return [CArray]
17 |
# File 'yard-stubs/carray_cast.rb', line 17 def CA_INT8(obj); end |
#CA_OBJECT(obj) ⇒ Object
Coerces obj into an :object CArray. @return [CArray]
41 |
# File 'yard-stubs/carray_cast.rb', line 41 def CA_OBJECT(obj); end |
#CA_SHORT(obj) ⇒ Object
Alias of #CA_INT16. @return [CArray]
51 |
# File 'yard-stubs/carray_cast.rb', line 51 def CA_SHORT(obj); end |
#CA_SIZE(obj) ⇒ CArray
Coerces obj into a CA_SIZE (platform native size) CArray.
44 |
# File 'yard-stubs/carray_cast.rb', line 44 def CA_SIZE(obj); end |
#CA_UINT16(obj) ⇒ Object
Coerces obj into a :uint16 CArray. @return [CArray]
23 |
# File 'yard-stubs/carray_cast.rb', line 23 def CA_UINT16(obj); end |
#CA_UINT32(obj) ⇒ Object
Coerces obj into a :uint32 CArray. @return [CArray]
27 |
# File 'yard-stubs/carray_cast.rb', line 27 def CA_UINT32(obj); end |
#CA_UINT64(obj) ⇒ Object
Coerces obj into a :uint64 CArray. @return [CArray]
31 |
# File 'yard-stubs/carray_cast.rb', line 31 def CA_UINT64(obj); end |
#CA_UINT8(obj) ⇒ Object
Coerces obj into a :uint8 CArray. @return [CArray]
19 |
# File 'yard-stubs/carray_cast.rb', line 19 def CA_UINT8(obj); end |