home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / dev / c / math_classes.lha / math_classes / matrix / libmatrix / lumat_getu.cc < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-18  |  186 b   |  17 lines

  1. #include "Matrix.h"
  2.     
  3.     
  4. Matrix getu(const LUmatrix& m)
  5.     {
  6.     Matrix a(m.lu);
  7.     unsigned int i,j;
  8.     for(i=2;i<=a.rows();i++)
  9.         {
  10.         for(j=1;j<i;j++)
  11.             {
  12.             a(i,j)=0.0;
  13.             }
  14.         }
  15.     return a;
  16.     }
  17.