Dtype

class omni.graph.core.Dtype(tuple_count: Optional[int] = None, size: Optional[int] = None, base_type: Optional[int] = None, ctype: Optional[object] = None)

Bases: object

Common base type for dtypes, defining the members each needs to populate tuple_count (int): The number of atomic elements in this type size (int): The total size in bytes of this type base_type (og.BaseDataType): The base data type of this type ctype (object): The ctypes representation used by this data type in Fabric

Methods

__init__([tuple_count, size, base_type, ctype])

is_matrix_type()

Returns true if the dtype is a matrix.

Attributes

base_type

ctype

size

tuple_count

__init__(tuple_count: Optional[int] = None, size: Optional[int] = None, base_type: Optional[int] = 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