src/Matrix/i_matrix.cc
// ____________________________________________________________________________
// M                 CLASS I_MATRIX MISCELLANEOUS FUNCTIONS
// ____________________________________________________________________________
/* These are functions that don't fit into the othere categories.

    Function  Arguments                           Result
   ---------- ---------   -----------------------------------------------------
   resize      nr, nc     Resizes imx to have nr rows & nc columns, type change
   copy         ----      Produces a copy of the imx, allocates memory
   convert       mx       Matrix mx has its values set to those of imx (no mem)
   IMX          ----      Identity matrix produced from imx conversion (mem)
   DMX          ----      Diagonal matrix produced from imx conversion (mem)
   HMX          ----      Identity matrix produced from imx conversion (no mem)
   NMX          ----      Complex matrix produced from imx conversion  (mem)
   
   The conversion functions will often drop elements, this is unavoidable. For
   example, one cannot generally convert an HMX array to a identity array.
   There are no elements lost when using HMX or NMX.  The *MX functions
   will always allocate new memory for the converted matrix from hmx.      */
M                 CLASS I_MATRIX MISCELLANEOUS FUNCTIONS
These are functions that don't fit into the othere categories.



The conversion functions will often drop elements, this is unavoidable. For
example, one cannot generally convert an HMX array to a identity array.
There are no elements lost when using HMX or NMX.  The *MX functions
will always allocate new memory for the converted matrix from hmx.
M CLASS I_MATRIX MISCELLANEOUS FUNCTIONS These are functions that don ' t fit into the othere categories . The conversion functions will often drop elements this is unavoidable . For example one cannot generally convert an HMX array to a identity array . There are no elements lost when using HMX or NMX . The * MX functions will always allocate new memory for the converted matrix from hmx .
void i_matrix::resize(int i, int j)
  {
  if(i != j)			
    {
    IMxerror(17, 1);                            
    IMxerror(6, " Matrix Resize", 1);           
    IMxfatal(3, "resize");                      
    }
  if(i != size)
    {
    _matrix::resize(i,j);	
    size = i;			
    }
  }
void i_matrix :: resize ( int i , int j ) { if ( i != j ) { IMxerror ( 17 , 1 ) ; IMxerror ( 6 , " " , 1 ) ; IMxfatal ( 3 , " " ) ; } if ( i != size ) { _matrix :: resize ( i , j ) ; size = i ; } }
____________________________________________________________________________
M                 CLASS I_MATRIX MISCELLANEOUS FUNCTIONS
____________________________________________________________________________
These are functions that don't fit into the othere categories.
____________________________________________________________________________ M CLASS I_MATRIX MISCELLANEOUS FUNCTIONS ____________________________________________________________________________ These are functions that don ' t fit into the othere categories .
// Insure resized to square array //   Dimension problems //   Matrix resize problems //   Fail in resize function // Set the new col & row size // Reset the total size