BufferND

open class BufferND<out T>(indexes: ShapeIndex, buffer: Buffer<T>) : StructureND<T>

Represents StructureND over Buffer.

Parameters

T

the type of items.

indexes

The strides to access elements of Buffer by linear indices.

buffer

The underlying buffer.

Constructors

BufferND
Link copied to clipboard
common
fun <out T> BufferND(indexes: ShapeIndex, buffer: Buffer<T>)
the type of items.

Functions

elements
Link copied to clipboard
common
open override fun elements(): Sequence<Pair<IntArray, T>>
Returns the sequence of all the elements associated by their indices.
get
Link copied to clipboard
common
open operator override fun get(index: IntArray): T
Returns the value at the specified indices.
getFeature
Link copied to clipboard
common
open override fun <F : StructureFeature> getFeature(type: KClass<out F>): F?
Feature is some additional structure information that allows to access it special properties or hints.
toString
Link copied to clipboard
common
open override fun toString(): String

Properties

buffer
Link copied to clipboard
common
open val buffer: Buffer<T>
The underlying buffer.
dimension
Link copied to clipboard
common
open val dimension: Int
The count of dimensions in this structure.
indexes
Link copied to clipboard
common
val indexes: ShapeIndex
The strides to access elements of Buffer by linear indices.
shape
Link copied to clipboard
common
open override val shape: IntArray
The shape of structure i.e., non-empty sequence of non-negative integers that specify sizes of dimensions of this structure.

Inheritors

MutableBufferND
Link copied to clipboard
DoubleBufferND
Link copied to clipboard

Sources

common source
Link copied to clipboard