ValueVec

class dsviper.ValueVec

Bases: object

ValueVec(type_vec [, initial_value]). A class used to represent a value of type vec<element_type, size>. Seamless with a Python seq[int|real].

Or use Value.create(type_vec [, initial_value]).

at(index: int, *, encoded: bool = True) int | float

Return the value at index.

static cast(value: Value) ValueVec

Return a vec<element_type, size> or raise.

copy() ValueVec

Return a deep copy.

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

Return the description.

hash() int

Return the hash value.

representation() str

Return the representation.

set(index: int, value: _NumericInputValues) None

Set the value at index.

size() int

Return the number of elements.

to_tuple() tuple

Return a tuple.

type() Type

Return the type.

type_code() str

Return the type code.

type_vec() TypeVec

Return the type vec<element_type, size>.