The goal of stdtensor is to provide a C++ library for tensors in STL style.
It will allow user to write program in a type safe and generic way.
Components
generic container data types
template <typename R, rank_t r>
tensor_t<R, r>; // the data owner type
template <typename R, rank_t r>
tensor_ref_t<R, r>; // the reference type
template <typename R, rank_t r>
tensor_view_t<R, r>; // the read only reference type, like https://en.cppreference.com/w/cpp/header/string_view
Overview
The goal of stdtensor is to provide a C++ library for tensors in STL style. It will allow user to write program in a type safe and generic way.
Components
generic container data types
All the 3 kinds of data types should have the following methods: They should be as consist as https://en.cppreference.com/w/cpp/container/vector
generic algorithms for tensors
advanced features
thrust::device_vector
Potential usages:
std::vector
np.array