Mat_cd (struct)

The Mat_cd represents a dense matrix.

/*
** Example: Mat_cd
*/

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

Mat_cd Mat_cd Mat_cd

Members

Integer rows  
Complex_d[] vals  

Methods

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

Operators

  - Mat_cd
Mat_cd = ( Param other )

Methods in detail

Mat_cd ( in Integer rows, in Integer cols )

Construct a matrix with rows and cols dimensions


Mat_cd ( in Mat_cd that )

Construct a matrix from the matrix that


Mat_cd ()

default constructor


Boolean Mat_cd.almostEqual? ( in Mat_cd that )

Returns true if this matrix is almost the same as another one (using a default precision)


Boolean Mat_cd.almostEqual? ( in Mat_cd that, in Float32 precision )

Returns true if this matrix is almost the same as another one


Mat_cd.appendDesc? ( io String string )

Append a String description of this matrix and its element values to the io String string


Mat_cd Mat_cd.clone? ()

clone method


Integer Mat_cd.cols? ()


Boolean Mat_cd.equal? ( in Mat_cd that )

Returns true if this matrix is the same as another one


Complex_d Mat_cd.get? ( in Integer row, in Integer col )

Return the element value at row and col


UInt32 Mat_cd.hash? ()

Hash for this matrix


Mat_cd Mat_cd.linearInterpolate? ( in Mat_cd that, in Complex_d t )

Linearly interpolates this matrix with another one based on a scalar blend value (0.0 to 1.0)


Mat_cd.resize! ( in Integer rows, in Integer cols )

Resize the matrix to rows and cols dimensions


Integer Mat_cd.rows? ()


Mat_cd.set! ( in Integer row, in Integer col, in Complex_d val )

Set the element value at row and col


Mat_cd.setAll! ( in Complex_d val )

Set all the matrix element values to val


Mat_cd.setDiagonal! ( in Integer size, in Complex_d val )

setting the diagonal components of this matrix to a scalar


Mat_cd.setDiagonal! ( in Vec_cd vec )

Set to a diagonal matrix given the diagonal elements


Mat_cd.setIdentity! ( in Integer size )

Set the matrix to an identity matrix of size rows and cols


Mat_cd.setNull! ()

Set the values of all matrix elements to zero


String Mat_cd.sizeDesc? ()

Return a String description of this matrix and its dimensions


Mat_cd Mat_cd.sub? ( in Integer rs, in Integer re, in Integer cs, in Integer ce )


Mat_cd Mat_cd.topLeft? ( in Integer rows, in Integer cols )


Complex_d Mat_cd.trace? ()

Compute the trace of the matrix. The matrix must be square.


Mat_cd Mat_cd.transpose? ()

Operators in detail

unary -


Mat_cd = ( Param other )

Add another matrix in place