Mat.kl

Types

Mat (struct)

The Mat represents a dense matrix.

/*
** Example: Mat
*/

// create a 4 row, 3 column matrix
Mat mat(4, 3);

Members

Integer rows  
Scalar[] vals  

Methods

  Mat ( in Integer rows, in Integer cols )
  Mat ( in Mat that )
  Mat ()
Boolean almostEqual ? ( in Mat that )
Boolean almostEqual ? ( in Mat that, in Scalar precision )
  appendDesc ? ( io String string )
Mat clone ? ()
Integer cols ? ()
Boolean equal ? ( in Mat that )
Scalar get ? ( in Integer row, in Integer col )
UInt32 hash ? ()
Mat linearInterpolate ? ( in Mat that, in Scalar t )
  resize ! ( in Integer rows, in Integer cols )
Integer rows ? ()
  set ! ( in Integer row, in Integer col, in Scalar val )
  setAll ! ( in Scalar val )
  setDiagonal ! ( in Integer size, in Scalar val )
  setDiagonal ! ( in Vec vec )
  setIdentity ! ( in Integer size )
  setNull ! ()
String sizeDesc ? ()
Mat sub ? ( in Integer rs, in Integer re, in Integer cs, in Integer ce )
Mat topLeft ? ( in Integer rows, in Integer cols )
Scalar trace ? ()
Mat transpose ? ()

Operators

  - Mat
Mat = ( Param other )