public GetMatrix Sum(GetMatrix matrix, int factor) { GetMatrix copyMatrix = new GetMatrix(matrix); for (int i = 0; i < copyMatrix.rows; i++) { for (int j = 0; j < copyMatrix.columns; j++) { //factor *= copyMatrix.Get(i, j); copyMatrix.Set(i, j, copyMatrix.Get(i, j) + factor); } } return(copyMatrix); }