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
div
Link copied to clipboard
open operator override fun StructureND<Double>.div(other: StructureND<Double>): DoubleBufferND
Content copied to clipboard
open operator override fun StructureND<Double>.div(arg: Double): DoubleBufferND
Content copied to clipboard
open operator override fun StructureND<Double>.div(k: Number): DoubleBufferND
Content copied to clipboard
map
Link copied to clipboard
open override fun StructureND<Double>.map(transform: DoubleField.(Double) -> Double): BufferND<Double>
Content copied to clipboard
Maps elements from one structure to another one by applying transform to them.
abstract fun StructureND<Short>.map(transform: ShortRing.(Short) -> Short): StructureND<Short>
Content copied to clipboard
Maps elements from one structure to another one by applying transform to them.
mapIndexed
Link copied to clipboard
abstract fun StructureND<Double>.mapIndexed(transform: DoubleField.(index: IntArray, Double) -> Double): StructureND<Double>
Content copied to clipboard
Maps elements from one structure to another one by applying transform to them alongside with their indices.
abstract fun StructureND<Short>.mapIndexed(transform: ShortRing.(index: IntArray, Short) -> Short): StructureND<Short>
Content copied to clipboard
Maps elements from one structure to another one by applying transform to them alongside with their indices.
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
minus
Link copied to clipboard
open operator override fun StructureND<Double>.minus(other: StructureND<Double>): DoubleBufferND
Content copied to clipboard
open operator override fun StructureND<Double>.minus(arg: Double): StructureND<Double>
Content copied to clipboard
open operator fun StructureND<Short>.minus(arg: Short): StructureND<Short>
Content copied to clipboard
open operator fun StructureND<Short>.minus(other: StructureND<Short>): StructureND<Short>
Content copied to clipboard
plus
Link copied to clipboard
open operator override fun StructureND<Double>.plus(other: StructureND<Double>): DoubleBufferND
Content copied to clipboard
open operator override fun StructureND<Double>.plus(arg: Double): DoubleBufferND
Content copied to clipboard
open operator fun StructureND<Short>.plus(arg: Short): StructureND<Short>
Content copied to clipboard
open operator fun StructureND<Short>.plus(other: StructureND<Short>): StructureND<Short>
Content copied to clipboard
times
Link copied to clipboard
open operator override fun StructureND<Double>.times(other: StructureND<Double>): DoubleBufferND
Content copied to clipboard
open operator override fun StructureND<Double>.times(k: Number): DoubleBufferND
Content copied to clipboard
open operator fun StructureND<Double>.times(arg: Double): StructureND<Double>
Content copied to clipboard
open operator fun StructureND<Short>.times(arg: Short): StructureND<Short>
Content copied to clipboard
open operator fun StructureND<Short>.times(other: StructureND<Short>): StructureND<Short>
Content copied to clipboard
toBufferND
Link copied to clipboard
unaryMinus
Link copied to clipboard
open operator override fun StructureND<Double>.unaryMinus(): DoubleBufferND
Content copied to clipboard
open operator override fun StructureND<Short>.unaryMinus(): StructureND<Short>
Content copied to clipboard
unaryPlus
Link copied to clipboard
open operator override fun StructureND<Double>.unaryPlus(): DoubleBufferND
Content copied to clipboard
zip
Link copied to clipboard
inline fun <T : Any> StructureND<T>.zip(struct: StructureND<T>, crossinline block: (T, T) -> T): StructureND<T>
Content copied to clipboard
Sources
common source
Link copied to clipboard