DMatrixContext

inline class DMatrixContext<T : Any, out A : Ring<T>>(context: LinearSpace<T, A>)

Basic operations on dimension-safe matrices. Operates on Matrix

Constructors

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

Types

Companion
Link copied to clipboard
common
object Companion

Functions

coerce
Link copied to clipboard
common
inline fun <R : Dimension, C : Dimension> Matrix<T>.coerce(): DMatrix<T, R, C>
dot
Link copied to clipboard
common
infix inline fun <R1 : Dimension, C1 : Dimension, C2 : Dimension> DMatrix<T, R1, C1>.dot(other: DMatrix<T, C1, C2>): DMatrix<T, R1, C2>
infix inline fun <R : Dimension, C : Dimension> DMatrix<T, R, C>.dot(vector: DPoint<T, C>): DPoint<T, R>
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
minus
Link copied to clipboard
common
inline operator fun <R : Dimension, C : Dimension> DMatrix<T, C, R>.minus(other: DMatrix<T, C, R>): DMatrix<T, C, R>
plus
Link copied to clipboard
common
inline operator fun <R : Dimension, C : Dimension> DMatrix<T, C, R>.plus(other: DMatrix<T, C, R>): DMatrix<T, C, R>
point
Link copied to clipboard
common
inline fun <D : Dimension> point(noinline initializer: A.(Int) -> T): DPoint<T, D>
produce
Link copied to clipboard
common
inline fun <R : Dimension, C : Dimension> produce(noinline initializer: A.(i: Int, j: Int) -> T): DMatrix<T, R, C>
Produce a matrix with this context and given dimensions
times
Link copied to clipboard
common
inline operator fun <R : Dimension, C : Dimension> T.times(m: DMatrix<T, R, C>): DMatrix<T, R, C>
inline operator fun <R : Dimension, C : Dimension> DMatrix<T, R, C>.times(value: T): DMatrix<T, R, C>
toString
Link copied to clipboard
common
open override fun toString(): String
transpose
Link copied to clipboard
common
inline fun <R : Dimension, C : Dimension> DMatrix<T, C, R>.transpose(): DMatrix<T, R, C>
unaryMinus
Link copied to clipboard
common
inline operator fun <R : Dimension, C : Dimension> DMatrix<T, C, R>.unaryMinus(): DMatrix<T, C, R>

Properties

context
Link copied to clipboard
common
val context: LinearSpace<T, A>

Extensions

one
Link copied to clipboard
common
inline fun <D : Dimension> DMatrixContext<Double, RealField>.one(): DMatrix<Double, D, D>
A square unit matrix
zero
Link copied to clipboard
common
inline fun <R : Dimension, C : Dimension> DMatrixContext<Double, RealField>.zero(): DMatrix<Double, R, C>