BaseMat

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

Base implementation of a square matrix with a given dimension.

Inheritors

Constructors

Link copied to clipboard
constructor(dimension: Int)

Functions

Link copied to clipboard
abstract fun adj(): M

Returns an adjugate of this matrix.

Link copied to clipboard
abstract fun det(): T

Returns a determinant of this matrix.

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

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: T): M

Multiplies this matrix by a given number.

Link copied to clipboard

Returns an array of elements of this matrix.

Link copied to clipboard

Returns an array of elements of this matrix.

Link copied to clipboard
open override fun toList(): List<T>

Returns a list of elements of this matrix.

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

Returns a string representation of this matrix.

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

Returns a transpose of this matrix.

Properties

Link copied to clipboard
abstract val type: KClass<T>

Type of matrix elements.