SparseBufferConstFloat

Inheritance diagram of rumba.SparseBufferConstFloat
class SparseBufferConstFloat

A read only buffer of sparse values. It is composed of a buffer of values and a buffer of the index in the whole buffer.

Methods

__init__

Constructor(s)

can_cast(v)

type v

Value

empty()

Resize true if this sparse buffer is empty.

read_indices()

Return a readable accessor on the indices buffer.

read_values()

Return a readable accessor on the buffer indices.

size()

Return the sparse buffer size.

__init__()

Constructor(s)

SparseBufferConst (v: Value)

Cast a Value object in SparseBufferConst.

If v has not the good type, a default value is constructed.

can_cast(v: Value) bool
Return type

bool

empty() bool

Resize true if this sparse buffer is empty.

Return type

bool

read_indices()

Return a readable accessor on the indices buffer.

read_values()

Return a readable accessor on the buffer indices.

size() int

Return the sparse buffer size.

Return type

int