src/Matrix/h_matrix.cc
/* These functions perform simple simple mathematical operations on a Hermitian
   matrix. Note that for Hermitian arrays the adjoint function does nothing.
 
    Function          Result             Function           Result
   ---------- -----------------------    --------  ------------------------
   negate     <i|hmx|j> -> -<i|hmx|j>       RE      <i|hmx|j>->Re(<i|hmx|j>)
   conjugate  <i|hmx|j> -> <i|hmx*|j>       IM      <i|hmx|j>->Im(<i|hmx|j>)
   transpose  <i|hmx|j> -> <j|hmx|i>      adjoint   <i|hmx|j>-><j|hmx*|i>   */
These functions perform simple simple mathematical operations on a Hermitian
matrix. Note that for Hermitian arrays the adjoint function does nothing.


These functions perform simple simple mathematical operations on a Hermitian matrix . Note that for Hermitian arrays the adjoint function does nothing .
_matrix* h_matrix::negate()
  {
  h_matrix* hmx1 = new h_matrix(cols_, rows_);
  for(int i=0; i<size; i++) hmx1->data[i] = -data[i];
  return hmx1;
  }
_matrix * h_matrix :: negate ( ) { h_matrix * hmx1 = new h_matrix ( cols_ , rows_ ) ; for ( int i = 0 ; i < size ; i ++ ) hmx1 -> data [ i ] = - data [ i ] ; return hmx1 ; }
These functions perform simple simple mathematical operations on a Hermitian
matrix.
These functions perform simple simple mathematical operations on a Hermitian matrix .