/*matrix& matrix::operator=(const matrix &m){ if(m.numrows != numrows|| m.numcols != numcols) cout << "ERROR: Different sizes."; for (int i =0; i < numrows; ++i) *mat[i] = *m.mat[i]; return *this; }*/ void matrix::A_Init(matrix &ma){ for (int r = 0; r < ma.getrows(); ++r) //this loop initialises the matrix [A] ("Amatrix".) using the memeber function A. { for (int c = 0; c < ma.getcols(); ++c) ma[r][c] = ma.A(r + 1, c + 1); }; }