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

Type

omni.graph.core._omni_graph_core.BaseDataType

ctype

The ctypes representation used by this data type in Fabric

Type

object

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[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