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

  1. #include "Matrix.h"
  2.  
  3.  
  4.     
  5. void Matrix::setrow(unsigned int ro,Matrix v)
  6.     {
  7.     if(v.rows()!=1) error("Row vector required");
  8.     for(unsigned int i=1;i<=cols();i++)
  9.         {
  10.         (*this)(ro,i)=v(1,i);
  11.         }
  12.     }
  13.