aboutsummaryrefslogtreecommitdiff
path: root/mu/src
diff options
context:
space:
mode:
Diffstat (limited to 'mu/src')
-rw-r--r--mu/src/main.rs16
1 files changed, 15 insertions, 1 deletions
diff --git a/mu/src/main.rs b/mu/src/main.rs
index f328e4d..a254401 100644
--- a/mu/src/main.rs
+++ b/mu/src/main.rs
@@ -1 +1,15 @@
-fn main() {}
+use libmu::*;
+
+fn main() {
+ #[rustfmt::skip]
+ let matrix = matrix![[1.0, 2.0, 3.0];
+ [4.0, 5.0, 6.0];
+ [7.0, 8.0, 9.0]];
+ let vector = row_vector![1.0, 2.0, 3.0];
+
+ let result = vector.mul_matrix(&matrix).unwrap();
+
+ println!("Matrix: \n{}", matrix);
+ println!("Vector: \n{}", vector);
+ println!("Result: \n{}", result);
+}