Skip to content
Select language:English

MCL 1.3.5

open class Matd(val rows: Int, val cols: Int, val values: DoubleArray)

Represents a generic matrix of floating-point double precision values.

The array must be in column-major order.

Parameters

rows

Number of rows in the matrix.

cols

Number of columns in the matrix.

values

Array of values in the matrix.

Inheritors

Constructors

constructor(rows: Int, cols: Int, values: DoubleArray)

Properties

Functions

operator fun get(row: Int, col: Int): Double

Gets the value at the specified row and column.

operator fun set(row: Int, col: Int, value: Double)

Sets the value at the specified row and column.

open override fun toString(): String