StructureND
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.
StructureND is in general identity-free. StructureND.contentEquals should be used in tests to compare contents.
Parameters
T
the type of items.
Types
Functions
getFeature
Link copied to clipboard
open override fun <F : StructureFeature> getFeature(type: KClass<out F>): F?
Content copied to clipboard
Properties
Inheritors
BufferND
Link copied to clipboard
Structure1D
Link copied to clipboard
Structure2D
Link copied to clipboard
MutableStructureND
Link copied to clipboard
Extensions
as1D
Link copied to clipboard
as2D
Link copied to clipboard
combine
Link copied to clipboard
inline fun <T : Any> StructureND<T>.combine(struct: StructureND<T>, crossinline block: (T, T) -> T): StructureND<T>
Content copied to clipboard
mapToBuffer
Link copied to clipboard
inline fun <T, R : Any> StructureND<T>.mapToBuffer(factory: BufferFactory<R> = Buffer.Companion::auto, crossinline transform: (T) -> R): BufferND<R>
Content copied to clipboard
Transform structure to a new structure using provided BufferFactory and optimizing if argument is BufferND
Sources
common source
Link copied to clipboard