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<out T, R : Dimension, C : Dimension> : Structure2D<T>
A matrix with compile-time controlled dimension
DMatrixContext
Link copied to clipboard
common
value class DMatrixContext<T : Any, out A : Ring<T>>(context: LinearSpace<T, A>)
Basic operations on dimension-safe matrices.
DMatrixWrapper
Link copied to clipboard
common
value class DMatrixWrapper<out 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<out T, D : Dimension> : Buffer<T>
Dimension-safe point
DPointWrapper
Link copied to clipboard
common
value class DPointWrapper<out 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(): Int
inline fun <D : Dimension> Dimension.Companion.dim(): Int
Finds Dimension.dim of given type D.
of
Link copied to clipboard
common
fun Dimension.Companion.of(dim: Int): Dimension
Finds or creates Dimension with Dimension.dim equal to dim.
fun Dimension.Companion.of(dim: Int): Dimension
fun Dimension.Companion.of(dim: Int): Dimension
fun Dimension.Companion.of(dim: Int): Dimension
one
Link copied to clipboard
common
inline fun <D : Dimension> DMatrixContext<Double, DoubleField>.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, DoubleField>.zero(): DMatrix<Double, R, C>