summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/matrix_example.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/matrix_example.cpp b/test/matrix_example.cpp
index 4cf1863..26aeede 100644
--- a/test/matrix_example.cpp
+++ b/test/matrix_example.cpp
@@ -12,6 +12,10 @@ int main(int argc, char *argv[]) {
std::cout << "a = \n" << a;
std::cout << "b = \n" << b;
std::cout << "c = \n" << c;
+
+ // access elements
+ std::cout << "a.at(2,0) = " << a.at(2, 0) << std::endl;
+ std::cout << "a[2][0] = " << a[2][0] << std::endl;;
// basic operations
std::cout << "a + b = \n" << a + b;