aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-05-26 23:43:10 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-05-26 23:43:10 +0100
commit4c16cca26bdae09525c04665b536da98beb4c76f (patch)
tree0a3ba29199ed13aaf34b8e624da08719793d1df4 /test
parent89c11e6679346e77ee32eb1343d3cf4e7d429a46 (diff)
downloadYAGE-4c16cca26bdae09525c04665b536da98beb4c76f.tar.gz
YAGE-4c16cca26bdae09525c04665b536da98beb4c76f.zip
Creating matrix
Diffstat (limited to 'test')
-rw-r--r--test/double_size.cpp11
-rw-r--r--test/matrix_test.cpp13
-rw-r--r--test/vector2d_test.cpp15
3 files changed, 13 insertions, 26 deletions
diff --git a/test/double_size.cpp b/test/double_size.cpp
deleted file mode 100644
index 25c7cef7..00000000
--- a/test/double_size.cpp
+++ /dev/null
@@ -1,11 +0,0 @@
-#include <iostream>
-
-int main()
-{
- std::cout<<"Size of double: "<<sizeof(double)<<'\n';
- std::cout<<"Size of long double: "<<sizeof(long double)<<'\n';
-
- if(sizeof(long double) > 8)
- return 0;
- return 1;
-}
diff --git a/test/matrix_test.cpp b/test/matrix_test.cpp
new file mode 100644
index 00000000..8f09ad38
--- /dev/null
+++ b/test/matrix_test.cpp
@@ -0,0 +1,13 @@
+#include "Math/matrix.hpp"
+
+#include <iostream>
+
+int main()
+{
+ yage::Matrix<double, 10, 10> matrix;
+
+ int x=matrix.get(5, 2);
+
+ std::cout<<"at: "<<x<<'\n';
+ return 0;
+}
diff --git a/test/vector2d_test.cpp b/test/vector2d_test.cpp
deleted file mode 100644
index 2eb00de4..00000000
--- a/test/vector2d_test.cpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#include "vector2d.hpp"
-
-#include <iostream>
-
-int main()
-{
- yage::Vector2D v;
- yage::Vector2D v2(1, 5);
-
- v=v2+2;
-
- std::cout<<v<<'\n';
-
- return 0;
-}