From 9ef9b5ff3f14c6682eeca5ad45ddc857fcbd6a64 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 28 Aug 2024 10:45:44 -0700 Subject: [PATCH] traits --- fixed_wide_vectors/src/lib.rs | 1 + fixed_wide_vectors/src/traits.rs | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 fixed_wide_vectors/src/traits.rs diff --git a/fixed_wide_vectors/src/lib.rs b/fixed_wide_vectors/src/lib.rs index 2dc585f..35a5dc4 100644 --- a/fixed_wide_vectors/src/lib.rs +++ b/fixed_wide_vectors/src/lib.rs @@ -1,4 +1,5 @@ mod macros; +mod traits; mod vector; #[cfg(feature="fixed_wide_traits")] diff --git a/fixed_wide_vectors/src/traits.rs b/fixed_wide_vectors/src/traits.rs new file mode 100644 index 0000000..c9abcb4 --- /dev/null +++ b/fixed_wide_vectors/src/traits.rs @@ -0,0 +1,8 @@ +pub trait Dot{ + type Output; + fn dot(self,rhs:Rhs)->Self::Output; +} +pub trait Transpose{ + type Output; + fn transpose(self)->Self::Output; +}