12 lines
208 B
C++
12 lines
208 B
C++
#include "matrices.h"
|
|
|
|
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 is a 3 by 1 vector
|
|
|
|
return 0;
|
|
} |