ValueMat

class dsviper.ValueMat

Bases: object

A class used to represent a value of type mat<element_type, columns, rows>. Seamless with a Python seq[seq[int|float]].

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

at(column: int, row: int, *, encoded: bool = True) _OutputValues

Return the value at column and row.

static cast(value: Value) ValueMat

Return a mat or raise.

columns() int

Return the number of columns.

copy() ValueMat

Return a deep copy.

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

Return the description.

hash() int

Return the hash value.

representation() str

Return the representation.

rows() int

Return the number of rows.

set(column: int, row: int, value: _InputValues) None

Set the value at column, row.

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_mat() TypeMat

Return the type mat<element_type, size>.