diff options
Diffstat (limited to 'lib/core/c++/abstract')
| -rw-r--r-- | lib/core/c++/abstract/data.hpp | 31 | ||||
| -rw-r--r-- | lib/core/c++/abstract/templates.hpp | 4 |
2 files changed, 35 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...}; +}; + + +} +} diff --git a/lib/core/c++/abstract/templates.hpp b/lib/core/c++/abstract/templates.hpp new file mode 100644 index 0000000..d4d4ace --- /dev/null +++ b/lib/core/c++/abstract/templates.hpp @@ -0,0 +1,4 @@ +#pragma once + +namespace kel { +} |
