Changed readme example
This commit is contained in:
parent
da2c37a249
commit
2451068777
10
README.md
10
README.md
@ -68,13 +68,13 @@ int main() {
|
||||
#include <iostream>
|
||||
|
||||
int main() {
|
||||
Lema::Matrix<int> mat1(2, 2, {1, 2, 3, 4});
|
||||
Lema::Matrix<int> mat2(2, 2, {1, 0, 0, 1});
|
||||
Matrix a(3, 3);
|
||||
Matrix b(3, 1); // Let's multiply by a vector
|
||||
|
||||
auto result = mat1 * mat2;
|
||||
Matrix result = a.Multiply(&b);
|
||||
|
||||
result.Print("A x B");
|
||||
|
||||
std::cout << "Result of multiplication:\n";
|
||||
result.print();
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user