Dtype
- class omni.graph.core.Dtype(tuple_count: Optional[int] = None, size: Optional[int] = None, base_type: Optional[BaseDataType] = None, ctype: Optional[object] = None)
Bases:
object
Common base type for dtypes, defining the members each needs to populate .. attribute:: tuple_count
The number of atomic elements in this type
- type
int
- size
The total size in bytes of this type
- Type
int
- base_type
The base data type of this type
- ctype
The ctypes representation used by this data type in Fabric
- Type
object
Methods
__init__
([tuple_count, size, base_type, ctype])Returns true if the dtype is a matrix.
Attributes
tuple_count
- __init__(tuple_count: Optional[int] = None, size: Optional[int] = None, base_type: Optional[BaseDataType] = None, ctype: Optional[object] = None) None
- classmethod is_matrix_type() bool
Returns true if the dtype is a matrix. Uses derived class knowledge to keep it simple