RealMatrix

Real matrix of double values.

Parameters

rows

the rows of the matrix represented as DoubleArray

Constructors

Link copied to clipboard
constructor(matrix: RealMatrix)
constructor(matrix: DoubleArray, columnDimension: Int)
constructor(rowVectors: List<RealVector>)
constructor(rows: Array<DoubleArray>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

number of columns

Link copied to clipboard

dimension of matrix as (rowDimension, columnDimension)

Link copied to clipboard

entry values of matrix whereby each DoubleArray represents a row

Link copied to clipboard

entry values of the matrix flattened to one DoubleArray

Link copied to clipboard

number of rows

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns true, if any value of the vector is NaN.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
operator fun get(rowIndex: Int): DoubleArray
Link copied to clipboard
fun getColumn(columnIndex: Int): DoubleArray

Returns the column of columnIndex as double array.

Link copied to clipboard
fun getColumnMatrix(columnIndex: Int): RealMatrix

Returns the column of columnIndex as a real matrix.

Link copied to clipboard
fun getColumnVector(columnIndex: Int): RealVector

Returns the column of columnIndex as real vector.

Link copied to clipboard
fun getRow(rowIndex: Int): DoubleArray

Returns the row of rowIndex as double array.

Link copied to clipboard
fun getRowMatrix(rowIndex: Int): RealMatrix

Returns the row of rowIndex as a real matrix.

Link copied to clipboard
fun getRowVector(rowIndex: Int): RealVector

Returns the row of rowIndex as real vector.

Link copied to clipboard
fun getSubMatrix(selectedRows: IntArray, selectedColumns: IntArray): RealMatrix
fun getSubMatrix(selectedRows: IntRange, selectedColumns: IntRange): RealMatrix

Returns a submatrix of the complete matrix by only selecting the selectedRows and selectedColumns.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard

Returns the inverse matrix of this matrix.

Link copied to clipboard

Returns this matrix multiplied with other (return = this x other).

Returns this matrix multiplied with a vector (return = this x vector).

Link copied to clipboard
fun normalize(rowIndex: Int, columnIndex: Int): RealMatrix
Link copied to clipboard

Returns the other matrix multiplied with this (return = other x this).

Returns a vector multiplied with this matrix (return = vector x this).

Link copied to clipboard
fun scalarAdd(summand: Double): RealMatrix

Returns this matrix multiplied with a scalar summand.

Link copied to clipboard

Returns this matrix multiplied with a scalar factor.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun toRealMatrixCM(): RealMatrix

Conversion to adapted Real Matrix class from Apache Commons Math.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Returns the transposed matrix of this matrix.