Package space.kscience.kmath.dimensions

Types

D1
Link copied to clipboard
common
object D1 : Dimension
Type representing 1 dimension.
D2
Link copied to clipboard
common
object D2 : Dimension
Type representing 2 dimensions.
D3
Link copied to clipboard
common
object D3 : Dimension
Type representing 3 dimensions.
Dimension
Link copied to clipboard
common
interface Dimension
Represents a quantity of dimensions in certain structure.
DMatrix
Link copied to clipboard
common
interface DMatrix<T, R : Dimension, C : Dimension> : Structure2D<T>
A matrix with compile-time controlled dimension
DMatrixContext
Link copied to clipboard
common
inline class DMatrixContext<T : Any, out A : Ring<T>>(context: LinearSpace<T, A>)
Basic operations on dimension-safe matrices.
DMatrixWrapper
Link copied to clipboard
common
inline class DMatrixWrapper<T, R : Dimension, C : Dimension>(structure: Structure2D<T>) : DMatrix<T, R, C>
An inline wrapper for a Matrix
DPoint
Link copied to clipboard
common
interface DPoint<T, D : Dimension> : Buffer<T>
Dimension-safe point
DPointWrapper
Link copied to clipboard
common
inline class DPointWrapper<T, D : Dimension>(point: Point<T>) : DPoint<T, D>
Dimension-safe point wrapper

Functions

dim
Link copied to clipboard
common
fun <D : Dimension> KClass<D>.dim(): UInt
inline fun <D : Dimension> Dimension.Companion.dim(): UInt
Finds Dimension.dim of given type D.
of
Link copied to clipboard
common
fun Dimension.Companion.of(dim: UInt): Dimension
Finds or creates Dimension with Dimension.dim equal to dim.
fun Dimension.Companion.of(dim: UInt): Dimension
fun Dimension.Companion.of(dim: UInt): Dimension
one
Link copied to clipboard
common
inline fun <D : Dimension> DMatrixContext<Double, RealField>.one(): DMatrix<Double, D, D>
A square unit matrix
resolve
Link copied to clipboard
fun <D : Dimension> Dimension.Companion.resolve(type: KClass<D>): D
fun <D : Dimension> Dimension.Companion.resolve(type: KClass<D>): D
fun <D : Dimension> Dimension.Companion.resolve(type: KClass<D>): D
fun <D : Dimension> Dimension.Companion.resolve(type: KClass<D>): D
zero
Link copied to clipboard
common
inline fun <R : Dimension, C : Dimension> DMatrixContext<Double, RealField>.zero(): DMatrix<Double, R, C>