Diffstat (limited to 'src/array.rs')
-rw-r--r--src/array.rs17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/array.rs b/src/array.rs
new file mode 100644
index 0000000..6297f6f
--- /dev/null
+++ b/src/array.rs
@@ -0,0 +1,17 @@
+use std::any::Any;
+use tinyvec::TinyVec;
+struct Array {
+ shape: Shape,
+ data: Vec<Box<dyn Any>>,
+}
+struct Shape {
+ dims: TinyVec<[usize; 3]>,
+}
+
+impl Shape {
+ pub fn scalar() -> Self {
+ Shape {
+ dims: TinyVec::new(),
+ }
+ }
+}