Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1.     friend ostream& operator << (ostream & output, Matrix<T>& o)
  2.     {
  3.         for (unsigned int x = 0;x<o.rows;x++)
  4.         {
  5.             for (unsigned int y = 0;y<o.cols;y++)
  6.             {
  7.                 output << setprecision(3) << left << setw(10) << o.matrix[x][y];
  8.             }
  9.  
  10.             output << endl;
  11.         }
  12.  
  13.         return output;
  14.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement