// Matriz2x2.cpp Total 16 pts. #include "Matriz2x2.h" Matriz2x2 Matriz2x2::operator * (const Matriz2x2 &B) const { // 6 pts. Matriz2x2 temp; for (int k = 0; k<2; k++) for (int i = 0; i<2; i++) for (int j = 0; j<2; j++) temp.values[i][j] += values[i][k] * B.values[k][j]; return temp; } Matriz2x2 Matriz2x2::operator + (const Matriz2x2 &B) const { // 5 pts. Matriz2x2 temp; for (int i = 0; i<2; i++) for (int j = 0; j<2; j++) temp.values[i][j] = values[i][j] + B.values[i][j]; return temp; } ostream & operator << (ostream &os, const Matriz2x2 &A) { // 5 pts. for (int i = 0; i<2; i++) { for (int j = 0; j<2; j++) os <<" "<< A.values[i][j]; os <<"\n"; } return os; }