Mat_c (struct)

The Mat_c represents a dense matrix.

/*
** Example: Mat_c
*/

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

Mat_c Mat_c Mat_c

Members

Integer rows  
Complex[] vals  

Methods

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

Operators

  - Mat_c
Mat_c = ( Param other )

Methods in detail

Mat_c ( in Integer rows, in Integer cols )

Construct a matrix with rows and cols dimensions


Mat_c ( in Mat_c that )

Construct a matrix from the matrix that


Mat_c ()

default constructor


Boolean Mat_c.almostEqual? ( in Mat_c that )

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


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

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


Mat_c.appendDesc? ( io String string )

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


Mat_c Mat_c.clone? ()

clone method


Integer Mat_c.cols? ()


Boolean Mat_c.equal? ( in Mat_c that )

Returns true if this matrix is the same as another one


Complex Mat_c.get? ( in Integer row, in Integer col )

Return the element value at row and col


UInt32 Mat_c.hash? ()

Hash for this matrix


Mat_c Mat_c.linearInterpolate? ( in Mat_c that, in Complex t )

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


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

Resize the matrix to rows and cols dimensions


Integer Mat_c.rows? ()


Mat_c.set! ( in Integer row, in Integer col, in Complex val )

Set the element value at row and col


Mat_c.setAll! ( in Complex val )

Set all the matrix element values to val


Mat_c.setDiagonal! ( in Integer size, in Complex val )

setting the diagonal components of this matrix to a scalar


Mat_c.setDiagonal! ( in Vec_c vec )

Set to a diagonal matrix given the diagonal elements


Mat_c.setIdentity! ( in Integer size )

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


Mat_c.setNull! ()

Set the values of all matrix elements to zero


String Mat_c.sizeDesc? ()

Return a String description of this matrix and its dimensions


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


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


Complex Mat_c.trace? ()

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


Mat_c Mat_c.transpose? ()

Operators in detail

unary -


Mat_c = ( Param other )

Add another matrix in place