BaseMat

abstract class BaseMat<M : Mat<M, V>, V : Vec>(dimension: Int) : Mat<M, V>

Base implementation of a square matrix with a given dimension.

Constructors

Link copied to clipboard
fun BaseMat(dimension: Int)

Functions

Link copied to clipboard
abstract fun adj(): M

Returns an adjugate of this matrix.

Link copied to clipboard
abstract fun det(): Float

Returns a determinant of this matrix.

Link copied to clipboard
open operator override fun get(row: Int, col: Int): Float

Returns element of this matrix at a given row and a given column.

Link copied to clipboard
open override fun inverse(): M

Returns an inverse of this matrix.

Link copied to clipboard
open operator override fun times(other: M): M

Multiplies this matrix by the other matrix of the same size.

open operator override fun times(vector: V): V

Multiplies this matrix by a given vector.

open operator override fun times(number: Float): M

Multiplies this matrix by a given number.

Link copied to clipboard
open override fun toFloatArray(): FloatArray

Returns an array of elements of this matrix.

Link copied to clipboard
open override fun transpose(): M

Returns a transpose of this matrix.

Inheritors

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