LinearSpace
Basic operations on matrices and vectors.
Parameters
T
the type of items in the matrices.
A
the type of ring over T.
Types
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun <F : StructureFeature> computeFeature(structure: Matrix<T>, type: KClass<out F>): F?
Content copied to clipboard
Compute a feature of the structure in this scope. Structure features take precedence other context features.
Link copied to clipboard
Link copied to clipboard
Multiplies an element by a matrix of it.
Multiplies an element by a vector of it.
Multiplies a matrix by its element.
Multiplies a vector by its element.
Link copied to clipboard
Properties
Inheritors
Extensions
Link copied to clipboard
inline fun <T : Any, F : StructureFeature> LinearSpace<T, *>.computeFeature(structure: Matrix<T>): F?
Content copied to clipboard
Get a feature of the structure in this scope. Structure features take precedence other context features.
Link copied to clipboard
fun <T : Comparable<T>> LinearSpace<T, Ring<T>>.contentEquals(st1: StructureND<T>, st2: StructureND<T>): Boolean
Content copied to clipboard
Indicates whether some StructureND is equal to another one.
fun <T : Comparable<T>> LinearSpace<T, Ring<T>>.contentEquals(st1: StructureND<T>, st2: StructureND<T>, absoluteTolerance: T): Boolean
Content copied to clipboard
Indicates whether some StructureND is equal to another one with absoluteTolerance.
Link copied to clipboard
fun <T : Comparable<T>> LinearSpace<T, Field<T>>.lup(factory: MutableBufferFactory<T>, matrix: Matrix<T>, checkSingular: (T) -> Boolean): LupDecomposition<T>
Content copied to clipboard
Create a lup decomposition of generic matrix.
inline fun <T : Comparable<T>> LinearSpace<T, Field<T>>.lup(matrix: Matrix<T>, noinline checkSingular: (T) -> Boolean): LupDecomposition<T>
Content copied to clipboard
fun LinearSpace<Double, DoubleField>.lup(matrix: Matrix<Double>, singularityThreshold: Double = 1.0E-11): LupDecomposition<Double>
Content copied to clipboard
Link copied to clipboard
fun <T : Comparable<T>, F : Field<T>> LinearSpace<T, F>.lupSolver(bufferFactory: MutableBufferFactory<T>, singularityCheck: (T) -> Boolean): LinearSolver<T>
Content copied to clipboard
Produce a generic solver based on LUP decomposition
fun LinearSpace<Double, DoubleField>.lupSolver(singularityThreshold: Double = 1.0E-11): LinearSolver<Double>
Content copied to clipboard