#include "pyAMReX.H"
#include <AMReX_Vector.H>
#include <cstdint>
#include <memory>
#include <sstream>
#include <string>
#include <type_traits>
#include <vector>
Go to the source code of this file.
|
| template<class T , class Allocator = std::allocator<T>> |
| void | make_Vector (py::module &m, std::string typestr) |
| |
◆ make_Vector()
template<class T , class Allocator = std::allocator<T>>
| void make_Vector |
( |
py::module & |
m, |
|
|
std::string |
typestr |
|
) |
| |
Register an amrex::Vector type with pybind11.
Specialized for a specific data type T and memory Allocator.
- Template Parameters
-
| T | data type per vector element |
| Allocator | the memory allocator, e.g., an AMReX Arena or std::allocator |
- Parameters
-
| m | the pyAMReX pybind11 module object |
| typestr | a unique suffix for the type T and Allocator |