pyAMReX
Functions
Vector.H File Reference
#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.

Functions

template<class T , class Allocator = std::allocator<T>>
void make_Vector (py::module &m, std::string typestr)
 

Function Documentation

◆ 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
Tdata type per vector element
Allocatorthe memory allocator, e.g., an AMReX Arena or std::allocator
Parameters
mthe pyAMReX pybind11 module object
typestra unique suffix for the type T and Allocator