SquareMatrix

open class SquareMatrix<T : Number> : MatrixImpl<T>

A square (NxN) Matrix.

Parameters

values

must be a square 2d array of values

Properties

Link copied to clipboard

The inverse of this matrix if it is invertible.

Link copied to clipboard

true if this matrix is equal to the Identity Matrix:

Inherited properties

Link copied to clipboard
override val numColumns: Int

The number of columns in the matrix.

Link copied to clipboard
override val numRows: Int

The number of rows in the matrix.

Inherited functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open operator override fun get(row: Int, col: Int): T

A value within the Matrix at row, col.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
@JvmName(name = "mapDD")
fun SquareMatrix<Double>.map(transform: (Double) -> Double): SquareMatrix<Double>
@JvmName(name = "mapDF")
fun SquareMatrix<Double>.map(transform: (Double) -> Float): SquareMatrix<Float>
@JvmName(name = "mapDI")
fun SquareMatrix<Double>.map(transform: (Double) -> Int): SquareMatrix<Int>
@JvmName(name = "mapDL")
fun SquareMatrix<Double>.map(transform: (Double) -> Long): SquareMatrix<Long>
@JvmName(name = "mapFD")
fun SquareMatrix<Float>.map(transform: (Float) -> Double): SquareMatrix<Double>
@JvmName(name = "mapFF")
fun SquareMatrix<Float>.map(transform: (Float) -> Float): SquareMatrix<Float>
@JvmName(name = "mapFI")
fun SquareMatrix<Float>.map(transform: (Float) -> Int): SquareMatrix<Int>
@JvmName(name = "mapFL")
fun SquareMatrix<Float>.map(transform: (Float) -> Long): SquareMatrix<Long>
@JvmName(name = "mapID")
fun SquareMatrix<Int>.map(transform: (Int) -> Double): SquareMatrix<Double>
@JvmName(name = "mapIF")
fun SquareMatrix<Int>.map(transform: (Int) -> Float): SquareMatrix<Float>
@JvmName(name = "mapIL")
fun SquareMatrix<Int>.map(transform: (Int) -> Long): SquareMatrix<Long>
@JvmName(name = "mapLD")
fun SquareMatrix<Long>.map(transform: (Long) -> Double): SquareMatrix<Double>
@JvmName(name = "mapLF")
fun SquareMatrix<Long>.map(transform: (Long) -> Float): SquareMatrix<Float>
@JvmName(name = "mapLI")
fun SquareMatrix<Long>.map(transform: (Long) -> Int): SquareMatrix<Int>
@JvmName(name = "mapLL")
fun SquareMatrix<Long>.map(transform: (Long) -> Long): SquareMatrix<Long>

@JvmName(name = "mapII")
fun SquareMatrix<Int>.map(transform: (Int) -> Int): SquareMatrix<Int>

Creates a new SquareMatrix whose members are the transform of those in this one.

Link copied to clipboard
@JvmName(name = "mapIndexedD")
fun SquareMatrix<Double>.mapIndexed(transform: (col: Int, row: Int, Double) -> Double): SquareMatrix<Double>
@JvmName(name = "mapIndexedF")
fun SquareMatrix<Float>.mapIndexed(transform: (col: Int, row: Int, Float) -> Float): SquareMatrix<Float>
@JvmName(name = "mapIndexedL")
fun SquareMatrix<Long>.mapIndexed(transform: (col: Int, row: Int, Long) -> Long): SquareMatrix<Long>

@JvmName(name = "mapIndexedI")
fun SquareMatrix<Int>.mapIndexed(transform: (col: Int, row: Int, Int) -> Int): SquareMatrix<Int>

Like map, but with col, row given for each item during tranformation.

Link copied to clipboard
Link copied to clipboard
operator fun Matrix<Double>.plus(other: Matrix<Double>): Matrix<Double>
Link copied to clipboard
operator fun Matrix<Double>.times(other: Matrix<Double>): Matrix<Double>
@JvmName(name = "timesDD")
inline operator fun SquareMatrix<Double>.times(value: Double): SquareMatrix<Double>
@JvmName(name = "timesDF")
inline operator fun SquareMatrix<Double>.times(value: Float): SquareMatrix<Double>
@JvmName(name = "timesDI")
inline operator fun SquareMatrix<Double>.times(value: Int): SquareMatrix<Double>
@JvmName(name = "timesDL")
inline operator fun SquareMatrix<Double>.times(value: Long): SquareMatrix<Double>
@JvmName(name = "timesFD")
inline operator fun SquareMatrix<Float>.times(value: Double): SquareMatrix<Double>
@JvmName(name = "timesFF")
inline operator fun SquareMatrix<Float>.times(value: Float): SquareMatrix<Float>
@JvmName(name = "timesFI")
inline operator fun SquareMatrix<Float>.times(value: Int): SquareMatrix<Float>
@JvmName(name = "timesFL")
inline operator fun SquareMatrix<Float>.times(value: Long): SquareMatrix<Float>
@JvmName(name = "timesID")
inline operator fun SquareMatrix<Int>.times(value: Double): SquareMatrix<Double>
@JvmName(name = "timesIF")
inline operator fun SquareMatrix<Int>.times(value: Float): SquareMatrix<Float>
@JvmName(name = "timesIL")
inline operator fun SquareMatrix<Int>.times(value: Long): SquareMatrix<Long>
@JvmName(name = "timesLD")
inline operator fun SquareMatrix<Long>.times(value: Double): SquareMatrix<Double>
@JvmName(name = "timesLF")
inline operator fun SquareMatrix<Long>.times(value: Float): SquareMatrix<Float>
@JvmName(name = "timesLI")
inline operator fun SquareMatrix<Long>.times(value: Int): SquareMatrix<Long>
@JvmName(name = "timesLL")
inline operator fun SquareMatrix<Long>.times(value: Long): SquareMatrix<Long>

@JvmName(name = "timesII")
inline operator fun SquareMatrix<Int>.times(value: Int): SquareMatrix<Int>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard