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
BufferedNDRing
Link copied to clipboard
open class BufferedNDRing<T, R : Ring<T>>(shape: IntArray, elementContext: R, bufferFactory: BufferFactory<T>) : BufferedNDSpace<T, R> , NDRing<T, R>
Content copied to clipboard
BufferedNDSpace
Link copied to clipboard
open class BufferedNDSpace<T, R : Space<T>>(shape: IntArray, elementContext: R, bufferFactory: BufferFactory<T>) : NDSpace<T, R> , BufferNDAlgebra<T, R>
Content copied to clipboard
BufferNDAlgebra
Link copied to clipboard
DefaultStrides
Link copied to clipboard
Matrix
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
NDStructure
Link copied to clipboard
RealNDField
Link copied to clipboard
class RealNDField(shape: IntArray) : BufferedNDField<Double, RealField> , RingWithNumbers<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> , RingWithNumbers<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
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
space
Link copied to clipboard
fun <T, A : Space<T>> NDAlgebra.Companion.space(space: A, bufferFactory: BufferFactory<T>, vararg shape: Int): BufferedNDSpace<T, A>
Content copied to clipboard