TypeVec

class dsviper.TypeVec(element_type, size)

Bases: object

A class used to represent a vec<element_type, size> type.

static cast(type: Type) TypeVec

Return a vec<N, size> or raise.

description(*, namespace: NameSpace | None = None) str

Return the description.

element_type() _NumericTypes

Return the element type.

elements_type() TypeVector

Return the type for elements.

representation(*, namespace: NameSpace | None = None) str

Return the representation.

runtime_id() ValueUUId

Return the uuid assigned by the runtime.

size() int

Return the number of elements.

type_code() str

Return the type code.