Package space.kscience.kmath.dimensions

Types

Link copied to clipboard
object D1 : Dimension

Type representing 1 dimension.

Link copied to clipboard
object D2 : Dimension

Type representing 2 dimensions.

Link copied to clipboard
object D3 : Dimension

Type representing 3 dimensions.

Link copied to clipboard
interface Dimension

Represents a quantity of dimensions in certain structure. This interface must be implemented only by objects.

Link copied to clipboard
interface DMatrix<out T, R : Dimension, C : Dimension> : Structure2D<T>

A matrix with compile-time controlled dimension

Link copied to clipboard
value class DMatrixContext<T : Any, out A : Ring<T>>(context: LinearSpace<T, A>)

Basic operations on dimension-safe matrices. Operates on Matrix

Link copied to clipboard
value class DMatrixWrapper<out T, R : Dimension, C : Dimension>(structure: Structure2D<T>) : DMatrix<T, R, C>

An inline wrapper for a Matrix

Link copied to clipboard
interface DPoint<out T, D : Dimension> : Buffer<T>

Dimension-safe point

Link copied to clipboard
value class DPointWrapper<out T, D : Dimension>(point: Point<T>) : DPoint<T, D>

Dimension-safe point wrapper

Functions

Link copied to clipboard
fun <D : Dimension> KClass<D>.dim(): Int

inline fun <D : Dimension> Dimension.Companion.dim(): Int

Finds Dimension.dim of given type D.

Link copied to clipboard
expect fun Dimension.Companion.of(dim: Int): Dimension

Finds or creates Dimension with Dimension.dim equal to dim.

actual fun Dimension.Companion.of(dim: Int): Dimension
actual fun Dimension.Companion.of(dim: Int): Dimension
actual fun Dimension.Companion.of(dim: Int): Dimension
Link copied to clipboard
inline fun <D : Dimension> DMatrixContext<Double, DoubleField>.one(): DMatrix<Double, D, D>

A square unit matrix

Link copied to clipboard
expect fun <D : Dimension> Dimension.Companion.resolve(type: KClass<D>): D
actual fun <D : Dimension> Dimension.Companion.resolve(type: KClass<D>): D
actual fun <D : Dimension> Dimension.Companion.resolve(type: KClass<D>): D
actual fun <D : Dimension> Dimension.Companion.resolve(type: KClass<D>): D
Link copied to clipboard
inline fun <R : Dimension, C : Dimension> DMatrixContext<Double, DoubleField>.zero(): DMatrix<Double, R, C>