35#ifndef NEKTAR_LIBRARY_LIBUTILITIES_PYTHON_NEKPYCONVERTORS_HPP
36#define NEKTAR_LIBRARY_LIBUTILITIES_PYTHON_NEKPYCONVERTORS_HPP
38#include <boost/python.hpp>
50template <
typename KeyT,
typename ValT>
54 for (
auto &entry : input)
56 ret[entry.first] = entry.second;
71 for (
auto &entry : input)
py::list VectorToPyList(const std::vector< T > &input)
Converts a std::vector to a Python list.
py::dict MapToPyDict(const std::map< KeyT, ValT > &input)
Converts a std::map to a Python dict.