AlgebraND
Parameters
T
the type of ND-structure element.
C
the type of the element context.
Types
Functions
getFeature
Link copied to clipboard
open fun <F : StructureFeature> getFeature(structure: StructureND<T>, type: KClass<out F>): F?
Content copied to clipboard
invoke
Link copied to clipboard
open operator fun (T) -> T.invoke(structure: StructureND<T>): StructureND<T>
Content copied to clipboard
mapIndexed
Link copied to clipboard
abstract fun StructureND<T>.mapIndexed(transform: C.(index: IntArray, T) -> T): StructureND<T>
Content copied to clipboard
Maps elements from one structure to another one by applying transform to them alongside with their indices.
structureND
Link copied to clipboard
abstract fun structureND(shape: Shape, initializer: C.(IntArray) -> T): StructureND<T>
Content copied to clipboard
Produces a new StructureND using given initializer function.
zip
Link copied to clipboard
abstract fun zip(left: StructureND<T>, right: StructureND<T>, transform: C.(T, T) -> T): StructureND<T>
Content copied to clipboard
Properties
elementAlgebra
Link copied to clipboard
Inheritors
Extensions
contentEquals
Link copied to clipboard
fun <T : Comparable<T>> AlgebraND<T, Ring<T>>.contentEquals(st1: StructureND<T>, st2: StructureND<T>): Boolean
Content copied to clipboard
Indicates whether some StructureND is equal to another one.
getFeature
Link copied to clipboard
inline fun <T : Any, F : StructureFeature> AlgebraND<T, *>.getFeature(structure: StructureND<T>): F?
Content copied to clipboard
Sources
common source
Link copied to clipboard