SHARE
TWEET

Untitled

Bisus Aug 31st, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Matrix<T>::Matrix(const Matrix<T>& other) {
  2.         elem{new T[other.numRows*other.numColumns]};
  3.         numRows = other.numRows;
  4.         numColums = other.numColumns;
  5.  
  6.         for (int i = 0; i!=numRows; ++i)
  7.             for (int j = 0; j!=numColumns; ++j)
  8.                 elem[i*numColumns + j] = other.elem[i*numColumns + j];
  9.  
  10.         return *this;
  11.  
  12.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top