BufferedLinearSpace

class BufferedLinearSpace<T : Any, A : Ring<T>>(elementAlgebra: A, bufferFactory: BufferFactory<T>) : LinearSpace<T, A>

Functions

buildMatrix
Link copied to clipboard
common
open override fun buildMatrix(rows: Int, columns: Int, initializer: A.(i: Int, j: Int) -> T): Matrix<T>
Produces a matrix with this context and given dimensions.
buildVector
Link copied to clipboard
common
open override fun buildVector(size: Int, initializer: A.(Int) -> T): Point<T>
Produces a point compatible with matrix space (and possibly optimized for it).
dot
Link copied to clipboard
common
open infix override fun Matrix<T>.dot(other: Matrix<T>): Matrix<T>
Computes the dot product of this matrix and another one.
open infix override fun Matrix<T>.dot(vector: Point<T>): Point<T>
Computes the dot product of this matrix and a vector.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
getFeature
Link copied to clipboard
common
open fun <F : Any> getFeature(structure: Matrix<T>, type: KClass<F>): F?
Get a feature of the structure in this scope.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
minus
Link copied to clipboard
common
open operator override fun Matrix<T>.minus(other: Matrix<T>): Matrix<T>
Matrix subtraction
open operator fun Point<T>.minus(other: Point<T>): Point<T>
Vector subtraction
plus
Link copied to clipboard
common
open operator override fun Matrix<T>.plus(other: Matrix<T>): Matrix<T>
Matrix sum
open operator fun Point<T>.plus(other: Point<T>): Point<T>
Vector sum
times
Link copied to clipboard
common
open operator override fun Matrix<T>.times(value: T): Matrix<T>
Multiplies a matrix by its element.
open operator fun T.times(m: Matrix<T>): Matrix<T>
Multiplies an element by a matrix of it.
open operator fun T.times(v: Point<T>): Point<T>
Multiplies an element by a vector of it.
open operator fun Point<T>.times(value: T): Point<T>
Multiplies a vector by its element.
toString
Link copied to clipboard
common
open fun toString(): String
unaryMinus
Link copied to clipboard
common
open operator override fun Matrix<T>.unaryMinus(): Matrix<T>
open operator fun Point<T>.unaryMinus(): Point<T>

Properties

elementAlgebra
Link copied to clipboard
common
open override val elementAlgebra: A