composable_kernel icon indicating copy to clipboard operation
composable_kernel copied to clipboard

Let ck::Array<> derive from std::array<>

Open poyenc opened this issue 2 years ago • 0 comments

The ck::Array<> and std::array<> behave same. And the only difference between those two types is that former has templated assignment operator. I think ck::Array<> can be used in most use case which std::array<> is needed, so ck::Array<> should inherit std::array<> in order to be compatible with most of interfaces.

Before

template <typename TData, index_t NSize>
struct Array

After

template <typename TData, index_t NSize>
struct Array : std::array<TData, NSize>

poyenc avatar Sep 28 '22 09:09 poyenc