Package space. kscience. kmath. nd
Types
BufferedNDField
Link copied to clipboard
open class BufferedNDField<T, R : Field<T>>(shape: IntArray, elementContext: R, bufferFactory: BufferFactory<T>) : BufferedNDRing<T, R> , NDField<T, R>
Content copied to clipboard
BufferedNDGroup
Link copied to clipboard
open class BufferedNDGroup<T, A : Group<T>>(shape: IntArray, elementContext: A, bufferFactory: BufferFactory<T>) : NDGroup<T, A> , BufferNDAlgebra<T, A>
Content copied to clipboard
BufferedNDRing
Link copied to clipboard
open class BufferedNDRing<T, R : Ring<T>>(shape: IntArray, elementContext: R, bufferFactory: BufferFactory<T>) : BufferedNDGroup<T, R> , NDRing<T, R>
Content copied to clipboard
BufferNDAlgebra
Link copied to clipboard
DefaultStrides
Link copied to clipboard
MutableNDBuffer
Link copied to clipboard
class MutableNDBuffer<T>(strides: Strides, buffer: MutableBuffer<T>) : NDBuffer<T> , MutableNDStructure<T>
Content copied to clipboard
Mutable ND buffer based on linear MutableBuffer.
MutableNDStructure
Link copied to clipboard
NDBuffer
Link copied to clipboard
NDField
Link copied to clipboard
interface NDField<T, F : Field<T>> : Field<NDStructure<T>> , NDRing<T, F> , ScaleOperations<NDStructure<T>>
Content copied to clipboard
Field of NDStructure.
NDStructure
Link copied to clipboard
RealNDField
Link copied to clipboard
class RealNDField(shape: IntArray) : BufferedNDField<Double, RealField> , NumbersAddOperations<NDStructure<Double>> , ScaleOperations<NDStructure<Double>> , ExtendedField<NDStructure<Double>>
Content copied to clipboard
ShapeMismatchException
Link copied to clipboard
class ShapeMismatchException(expected: IntArray, actual: IntArray) : RuntimeException
Content copied to clipboard
ShortNDRing
Link copied to clipboard
class ShortNDRing(shape: IntArray) : BufferedNDRing<Short, ShortRing> , NumbersAddOperations<NDStructure<Short>>
Content copied to clipboard
Structure1D
Link copied to clipboard
Structure2D
Link copied to clipboard
Functions
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
field
Link copied to clipboard
fun <T, A : Field<T>> NDAlgebra.Companion.field(field: A, bufferFactory: BufferFactory<T>, vararg shape: Int): BufferedNDField<T, A>
Content copied to clipboard
getFeature
Link copied to clipboard
inline fun <T : Any, F : Any> NDAlgebra<T, *>.getFeature(structure: NDStructure<T>): F?
Content copied to clipboard
group
Link copied to clipboard
fun <T, A : Group<T>> NDAlgebra.Companion.group(space: A, bufferFactory: BufferFactory<T>, vararg shape: Int): BufferedNDGroup<T, A>
Content copied to clipboard
mapInPlace
Link copied to clipboard
inline fun <T> MutableNDStructure<T>.mapInPlace(action: (IntArray, T) -> T)
Content 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
nd
Link copied to clipboard
produceInline
Link copied to clipboard
inline fun BufferedNDRing<Short, ShortRing>.produceInline(crossinline initializer: ShortRing.(Int) -> Short): NDBuffer<Short>
Content copied to clipboard
real
Link copied to clipboard
ring
Link copied to clipboard
fun <T, A : Ring<T>> NDAlgebra.Companion.ring(ring: A, bufferFactory: BufferFactory<T>, vararg shape: Int): BufferedNDRing<T, A>
Content copied to clipboard