ItemsAccessor

interface ItemsAccessor<T>(source)

A fundamental data structure interface that provides indexed access to elements.

This interface serves as the base for all data structures that need to provide element access through multidimensional indexing. It is designed to support efficient access patterns commonly used in neural network computations.

Parameters

T

the type of elements that can be accessed

Inheritors

Functions

Link copied to clipboard
abstract operator fun get(vararg indices: Int): T

Retrieves an element at the specified multidimensional indices.

Link copied to clipboard
abstract operator fun set(vararg indices: Int, value: T)

Setter