6 #ifndef ECHELON_STD_VECTOR_HPP 7 #define ECHELON_STD_VECTOR_HPP 9 #include <echelon/hdf5/container_adaption.hpp> 20 inline std::vector<std::size_t> shape(
const std::vector<T>& container, adl_enabler)
22 return {container.size()};
26 inline void reshape(std::vector<T>& container,
const std::vector<std::size_t>& new_shape, adl_enabler)
28 assert(new_shape.size() == 1);
30 container.resize(new_shape[0]);
echelon's core namespace
Definition: attribute.cpp:10
auto reshape(C &container, const std::vector< std::size_t > &new_shape) -> decltype(reshape(container, new_shape, adl_enabler
Reshapes the container.
Definition: container_adaption.hpp:64