Added Adding and Substracting matrices

This commit is contained in:
2024-12-23 21:24:53 +01:00
parent e53df84e46
commit 8418342bf7
2 changed files with 53 additions and 5 deletions

View File

@@ -6,10 +6,16 @@ int main()
{
srand(time(0));
Matrix test(3,2);
test.Randomize();
test.Print("");
test.Transpose();
test.Print("");
Matrix a(3,3);
Matrix b(3,3);
a.Randomize();
b.Randomize();
a.Print("A");
b.Print("B");
a.Add(&b);
a.Print("A+B");
return 0;
}