Mat

interface Mat<T : Mat<T>>

A common interface for square matrix implementations.

Functions

adj
Link copied to clipboard
common
abstract fun adj(): T
Returns an adjugate of this matrix.
det
Link copied to clipboard
common
abstract fun det(): Float
Returns a determinant of this matrix.
equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
get
Link copied to clipboard
common
abstract operator fun get(row: Int, col: Int): Float
Returns element of this matrix at a given row and a given column.
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
inverse
Link copied to clipboard
common
abstract fun inverse(): T
Returns an inverse of this matrix.
times
Link copied to clipboard
common
abstract operator fun times(other: T): T
Multiplies this matrix by the other matrix of the same size.
abstract operator fun times(number: Float): T
Multiplies this matrix by a given number.
toFloatArray
Link copied to clipboard
common
abstract fun toFloatArray(): FloatArray
Returns an array of elements of this matrix.
toString
Link copied to clipboard
common
open fun toString(): String
transpose
Link copied to clipboard
common
abstract fun transpose(): T
Returns a transpose of this matrix.

Inheritors

BaseMat
Link copied to clipboard