blob: e8f1757d4f7172c86d61a87e0cc876db52ac2044 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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...};
};
}
}
|