class Vector
Represents a vector type (SIMD vector). Vector types are used for SIMD operations and have a fixed number of elements of the same type.
Definitions
def element_type
Get the element type of this vector.
Signature
-
returns
Type The type of elements in this vector.
Implementation
def element_type
Type.create Lib.get_element_type(@type), @translation_unit
end
def size
Get the number of elements in this vector.
Signature
-
returns
Integer The number of elements.
Implementation
def size
Lib.get_num_elements(@type)
end