Package space. kscience. kmath. linear
Types
BufferMatrix
Link copied to clipboard
class BufferMatrix<T : Any>(rowNum: Int, colNum: Int, buffer: Buffer<T>) : Structure2D<T>
Content copied to clipboard
BufferMatrixContext
Link copied to clipboard
class BufferMatrixContext<T : Any, R : Ring<T>>(elementContext: R, bufferFactory: BufferFactory<T>) : GenericMatrixContext<T, R, BufferMatrix<T>>
Content copied to clipboard
Basic implementation of Matrix space based on NDStructure
BufferVectorSpace
Link copied to clipboard
class BufferVectorSpace<T : Any, S : Space<T>>(size: Int, space: S, bufferFactory: BufferFactory<T>) : VectorSpace<T, S>
Content copied to clipboard
CholeskyDecompositionFeature
Link copied to clipboard
DeterminantFeature
Link copied to clipboard
DiagonalFeature
Link copied to clipboard
GenericMatrixContext
Link copied to clipboard
InverseMatrixFeature
Link copied to clipboard
LFeature
Link copied to clipboard
LinearSolver
Link copied to clipboard
LupDecomposition
Link copied to clipboard
class LupDecomposition<T : Any>(context: MatrixContext<T, Matrix<T>>, elementContext: Field<T>, lu: Matrix<T>, pivot: IntArray, even: Boolean) : LupDecompositionFeature<T> , DeterminantFeature<T>
Content copied to clipboard
Common implementation of LupDecompositionFeature.
LupDecompositionFeature
Link copied to clipboard
Matrix
Link copied to clipboard
MatrixBuilder
Link copied to clipboard
MatrixContext
Link copied to clipboard
interface MatrixContext<T : Any, out M : Matrix<T>> : SpaceOperations<Matrix<T>>
Content copied to clipboard
MatrixFeature
Link copied to clipboard
interface MatrixFeature
Content copied to clipboard
MatrixWrapper
Link copied to clipboard
OrthogonalFeature
Link copied to clipboard
Matrices with this feature are orthogonal ones: a · a<sup>T</sup> = u where a is the owning matrix, u is the unit matrix (UnitFeature).
QRDecompositionFeature
Link copied to clipboard
RealMatrixContext
Link copied to clipboard
SingularValueDecompositionFeature
Link copied to clipboard
TransposedFeature
Link copied to clipboard
UFeature
Link copied to clipboard
UnitFeature
Link copied to clipboard
VectorSpace
Link copied to clipboard
VirtualMatrix
Link copied to clipboard
class VirtualMatrix<T : Any>(rowNum: Int, colNum: Int, generator: (i: Int, j: Int) -> T) : Structure2D<T>
Content copied to clipboard
ZeroFeature
Link copied to clipboard
Functions
build
Link copied to clipboard
column
Link copied to clipboard
DeterminantFeature
Link copied to clipboard
getFeature
Link copied to clipboard
inline fun <T : Any, F : Any> MatrixContext<T, *>.getFeature(m: Matrix<T>): F?
Content copied to clipboard
inverseWithLup
Link copied to clipboard
fun RealMatrixContext.inverseWithLup(matrix: Matrix<Double>): Matrix<Double>
Content copied to clipboard
inline fun <T : Comparable<T>, F : Field<T>> GenericMatrixContext<T, F, Matrix<T>>.inverseWithLup(matrix: Matrix<T>, noinline bufferFactory: MutableBufferFactory<T> = MutableBuffer.Companion::auto, noinline checkSingular: (T) -> Boolean): Matrix<T>
Content copied to clipboard
lup
Link copied to clipboard
fun MatrixContext<Double, Matrix<Double>>.lup(matrix: Matrix<Double>): LupDecomposition<Double>
Content copied to clipboard
fun <T : Comparable<T>> MatrixContext<T, Matrix<T>>.lup(factory: MutableBufferFactory<T>, elementContext: Field<T>, matrix: Matrix<T>, checkSingular: (T) -> Boolean): LupDecomposition<T>
Content copied to clipboard
plus
Link copied to clipboard
operator fun <T : Any> Matrix<T>.plus(newFeatures: Collection<MatrixFeature>): MatrixWrapper<T>
Content copied to clipboard
Add a collection of features to a Matrix
operator fun <T : Any> Matrix<T>.plus(newFeature: MatrixFeature): MatrixWrapper<T>
Content copied to clipboard
Add a single feature to a Matrix
row
Link copied to clipboard
solveWithLup
Link copied to clipboard
inline fun <T : Any> LupDecomposition<T>.solveWithLup(matrix: Matrix<T>): Matrix<T>
Content copied to clipboard
fun <T : Any> LupDecomposition<T>.solveWithLup(factory: MutableBufferFactory<T>, matrix: Matrix<T>): Matrix<T>
Content copied to clipboard
fun RealMatrixContext.solveWithLup(a: Matrix<Double>, b: Matrix<Double>): Matrix<Double>
Content copied to clipboard