DMatrixContext

inline class DMatrixContext<T : Any>(context: MatrixContext<T, Matrix<T>>)

Basic operations on dimension-safe matrices. Operates on Matrix

Constructors

DMatrixContext
Link copied to clipboard
common
fun <T : Any> DMatrixContext(context: MatrixContext<T, Matrix<T>>)

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: (Int) -> T): DPoint<T, D>
produce
Link copied to clipboard
common
inline fun <R : Dimension, C : Dimension> produce(noinline initializer: (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: MatrixContext<T, Matrix<T>>

Extensions

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