api / koma / mat


object mat

A helper object that allows for quick construction of matrix literals.

For example, one can write

var a = mat[1,2,3 end

to get a 2x3 Matrix with the given values. end is a helper object that indicates the end of a row to this object. Note that one currently cannot use this function to generate a column vector:


mat[1 end 2 end 3]

Instead do this:

// Define a column vector by transposing a row-vector

mat[1 2 3].T


Name Summary
get operator fun get(vararg ts:Any):Matrix<Double>
See mat description.