Dtype#

class omni.graph.core.Dtype(
tuple_count: int | None = None,
size: int | None = None,
base_type: BaseDataType | None = None,
ctype: object | None = 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: int | None = None,
size: int | None = None,
base_type: BaseDataType | None = None,
ctype: object | None = None,
) None#
classmethod is_matrix_type() bool#

Returns true if the dtype is a matrix. Uses derived class knowledge to keep it simple