EjmlLinearSpace

abstract class EjmlLinearSpace<T : Any, out A : Ring<T>, M : Matrix> : LinearSpace<T, A>

LinearSpace implementation specialized for a certain EJML type.

Author

Iaroslav Postovalov

Parameters

T

the type of items in the matrices.

A

the element context type.

M

the EJML matrix type.

Constructors

EjmlLinearSpace
Link copied to clipboard
fun EjmlLinearSpace()
the type of items in the matrices.

Functions

buildMatrix
Link copied to clipboard
abstract override fun buildMatrix(rows: Int, columns: Int, initializer: A.(i: Int, j: Int) -> T): EjmlMatrix<T, M>
buildVector
Link copied to clipboard
abstract override fun buildVector(size: Int, initializer: A.(Int) -> T): EjmlVector<T, M>
dot
Link copied to clipboard
open infix fun Matrix<T>.dot(other: Matrix<T>): Matrix<T>
open infix fun Matrix<T>.dot(vector: Point<T>): Point<T>
getFeature
Link copied to clipboard
open fun <F : StructureFeature> getFeature(structure: Matrix<T>, type: KClass<out F>): F?
minus
Link copied to clipboard
open operator fun Matrix<T>.minus(other: Matrix<T>): Matrix<T>
open operator fun Point<T>.minus(other: Point<T>): Point<T>
plus
Link copied to clipboard
open operator fun Matrix<T>.plus(other: Matrix<T>): Matrix<T>
open operator fun Point<T>.plus(other: Point<T>): Point<T>
times
Link copied to clipboard
open operator fun T.times(m: Matrix<T>): Matrix<T>
open operator fun T.times(v: Point<T>): Point<T>
open operator fun Matrix<T>.times(value: T): Matrix<T>
open operator fun Point<T>.times(value: T): Point<T>
toEjml
Link copied to clipboard
abstract fun Matrix<T>.toEjml(): EjmlMatrix<T, M>
Converts this matrix to EJML one.
abstract fun Point<T>.toEjml(): EjmlVector<T, M>
Converts this vector to EJML one.
unaryMinus
Link copied to clipboard
open operator fun Matrix<T>.unaryMinus(): Matrix<T>
open operator fun Point<T>.unaryMinus(): Point<T>

Properties

elementAlgebra
Link copied to clipboard
abstract val elementAlgebra: A

Inheritors

EjmlLinearSpaceDDRM
Link copied to clipboard