N D Structure
Represents n-dimensional structure, i.e. multidimensional container of items of the same type and size. The number of dimensions and items in an array is defined by its shape, which is a sequence of non-negative integers that specify the sizes of each dimension.
Parameters
T
the type of items.
Types
Functions
Properties
Inheritors
MutableNDStructure
Link copied to clipboard
NDBuffer
Link copied to clipboard
Structure1D
Link copied to clipboard
Structure2D
Link copied to clipboard
Extensions
as1D
Link copied to clipboard
as2D
Link copied to clipboard
combine
Link copied to clipboard
inline fun <T : Any> NDStructure<T>.combine(struct: NDStructure<T>, crossinline block: (T, T) -> T): NDStructure<T>
Content copied to clipboard
getFeature
Link copied to clipboard
mapToBuffer
Link copied to clipboard
inline fun <T, R : Any> NDStructure<T>.mapToBuffer(factory: BufferFactory<R> = Buffer.Companion::auto, crossinline transform: (T) -> R): NDBuffer<R>
Content copied to clipboard
Transform structure to a new structure using provided BufferFactory and optimizing if argument is NDBuffer