diff options
Diffstat (limited to 'lib/core/c++/abstract/data.hpp')
| -rw-r--r-- | lib/core/c++/abstract/data.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/core/c++/abstract/data.hpp b/lib/core/c++/abstract/data.hpp new file mode 100644 index 0000000..e8f1757 --- /dev/null +++ b/lib/core/c++/abstract/data.hpp @@ -0,0 +1,31 @@ +#pragma once + +#include "templates.hpp" + +namespace kel { +namespace sch { +struct UnsignedInteger {}; +struct SignedInteger {}; +struct FloatingPoint {}; + +template<typename StorageT, typename InterfaceT> +struct MixedPrecision { + using StorageType = StorageT; + using InterfaceType = InterfaceT; +}; + +template<typename PrimType, uint64_t N> +struct Primitive { + using PrimitiveType = PrimType; + static constexpr uint64_t Bytes = N; +}; + +template<typename T, uint64_t... Dims> +struct Array { + using InnerType = T; + static constexpr std::array<uint64_t,sizeof...(Dims)> Dimensions{Dims...}; +}; + + +} +} |
