DoubleLinearSpace

object DoubleLinearSpace : LinearSpace<Double, DoubleField>

Functions

Link copied to clipboard
open override fun buildMatrix(rows: Int, columns: Int, initializer: DoubleField.(i: Int, j: Int) -> Double): Matrix<Double>

Produces a matrix with this context and given dimensions.

Link copied to clipboard
open override fun buildVector(size: Int, initializer: DoubleField.(Int) -> Double): DoubleBuffer

Produces a point compatible with matrix space (and possibly optimized for it).

Link copied to clipboard
open fun <F : StructureFeature> computeFeature(structure: Matrix<Double>, type: KClass<out F>): F?

Compute a feature of the structure in this scope. Structure features take precedence other context features.

Link copied to clipboard
operator fun Point<Double>.div(value: Double): DoubleBuffer
Link copied to clipboard
open infix override fun Matrix<Double>.dot(other: Matrix<Double>): Matrix<Double>

Computes the dot product of this matrix and another one.

open infix override fun Matrix<Double>.dot(vector: Point<Double>): DoubleBuffer

Computes the dot product of this matrix and a vector.

Link copied to clipboard
open operator override fun Matrix<Double>.minus(other: Matrix<Double>): Matrix<Double>

Matrix subtraction

open operator override fun Point<Double>.minus(other: Point<Double>): DoubleBuffer

Vector subtraction

Link copied to clipboard
open operator override fun Matrix<Double>.plus(other: Matrix<Double>): Matrix<Double>

Matrix sum

open operator override fun Point<Double>.plus(other: Point<Double>): DoubleBuffer

Vector sum

Link copied to clipboard
open operator override fun Double.times(v: Point<Double>): DoubleBuffer

Multiplies an element by a vector of it.

open operator override fun Matrix<Double>.times(value: Double): Matrix<Double>

Multiplies a matrix by its element.

open operator override fun Point<Double>.times(value: Double): DoubleBuffer

Multiplies a vector by its element.

open operator fun Double.times(m: Matrix<Double>): Matrix<Double>

Multiplies an element by a matrix of it.

Link copied to clipboard
open operator override fun Matrix<Double>.unaryMinus(): Matrix<Double>
open operator fun Point<Double>.unaryMinus(): Point<Double>

Properties

Link copied to clipboard
open override val elementAlgebra: DoubleField

Sources

Link copied to clipboard