package io.rtron.math.linear

Classes

Name Description
class RealMatrix: Any

Real matrix of double values.

class RealVector: Any

Real vector of double values, whereby the number of provided values defines the dimension of the vector.

class SingularValueDecomposition: Any

Performs a singular value decomposition (SVD) on a RealMatrix. See the wikipedia article on singular value decomposition.

Methods

appendColumn

fun RealMatrix.appendColumn(newColumn: DoubleArray): RealMatrix

Appends a newColumn to a RealMatrix.

Receiver

Name Description
RealMatrix

Parameters

Name Description
newColumn: DoubleArray

ReturnValue

Name Description
RealMatrix

appendRow

fun RealMatrix.appendRow(newRow: DoubleArray): RealMatrix

Appends a newRow to a RealMatrix.

Receiver

Name Description
RealMatrix

Parameters

Name Description
newRow: DoubleArray

ReturnValue

Name Description
RealMatrix

toRealVector

fun CMRealVector.toRealVector(): CMRealVector

Conversion from adapted Real Vector class from Apache Commons Math.

Receiver

Name Description
CMRealVector

ReturnValue

Name Description
CMRealVector

dimensionOfSpan

fun List<RealVector>.dimensionOfSpan(): Int

Returns the dimension of the linear span of a given list of RealVector. See the wikipedia article on linear span.

Receiver

Name Description
List<RealVector>

list of vectors for which the dimension of the span is to be evaluated

ReturnValue

Name Description
Int

dimension of the span