Line data Source code
1 0 : // Distributed under the MIT License. 2 : // See LICENSE.txt for details. 3 : 4 : #pragma once 5 : 6 : #include <array> 7 : #include <cstddef> 8 : 9 : #include "DataStructures/DataVector.hpp" 10 : 11 : /// \ingroup DataStructuresGroup 12 : /// Convert a std::array to a DataVector. Currently only instantiated for N=3. 13 : template <size_t N> 14 1 : DataVector array_to_datavector(const std::array<double, N>& arr);