Reflected changes to README

This commit is contained in:
2024-12-24 14:33:22 +01:00
parent 3c596e9601
commit 57fa219441
2 changed files with 13 additions and 25 deletions

View File

@@ -1,20 +1,12 @@
#include "matrices.h"
// using namespace std;
int main()
{
srand(time(0));
Matrix a(3,3);
a.Randomize();
Matrix b(3, 1);
b.Set(2.0F);
a.Print("A");
b.Print("B");
int main() {
Matrix a(3, 3);
Matrix b(3, 1); // Let's multiply by a vector
Matrix result = a * &b;
result.Print("A x B");
result.Print("A x B"); // Result is a 3 by 1 vector
return 0;
}