Reflected changes to README
This commit is contained in:
18
main.cpp
18
main.cpp
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user