public void Set(Matrix other) { double[][] target = Data; double[][] source = other.Data; for (int r = 0; r < Rows; r++) for (int c = 0; c < Cols; c++) target[r][c] = source[r][c]; }