#include <pybind11/numpy.h>
#include <pybind11/stl.h>
#include "pybind11_tests.h"
#include <cstdint>
#include <utility>
Go to the source code of this file.
Classes | |
struct | DtypeCheck |
struct | DtypeSizeCheck |
Macros | |
#define | def_index_fn(name, type) |
Typedefs | |
using | arr = py::array |
using | arr_t = py::array_t< uint16_t, 0 > |
Functions | |
template<typename... Ix> | |
py::ssize_t | at_t (const arr_t &a, Ix... idx) |
template<typename T , typename T2 > | |
py::handle | auxiliaries (T &&r, T2 &&r2) |
template<typename... Ix> | |
arr | data (const arr &a, Ix... index) |
template<typename... Ix> | |
arr | data_t (const arr_t &a, Ix... index) |
std::vector< DtypeCheck > | get_concrete_dtype_checks () |
template<typename T > | |
DtypeCheck | get_dtype_check (const char *name) |
template<typename T > | |
DtypeSizeCheck | get_dtype_size_check () |
std::vector< DtypeSizeCheck > | get_platform_dtype_size_checks () |
template<typename... Ix> | |
py::ssize_t | index_at (const arr &a, Ix... idx) |
template<typename... Ix> | |
py::ssize_t | index_at_t (const arr_t &a, Ix... idx) |
template<typename... Ix> | |
arr_t & | mutate_at_t (arr_t &a, Ix... idx) |
template<typename... Ix> | |
arr & | mutate_data (arr &a, Ix... index) |
template<typename... Ix> | |
arr_t & | mutate_data_t (arr_t &a, Ix... index) |
template<typename... Ix> | |
py::ssize_t | offset_at (const arr &a, Ix... idx) |
template<typename... Ix> | |
py::ssize_t | offset_at_t (const arr_t &a, Ix... idx) |
TEST_SUBMODULE (numpy_array, sm) | |
Variables | |
static int | data_i = 42 |
Definition at line 135 of file test_numpy_array.cpp.
Definition at line 77 of file test_numpy_array.cpp.
Definition at line 78 of file test_numpy_array.cpp.
py::ssize_t at_t | ( | const arr_t & | a, |
Ix... | idx | ||
) |
Definition at line 126 of file test_numpy_array.cpp.
Definition at line 142 of file test_numpy_array.cpp.
Definition at line 82 of file test_numpy_array.cpp.
Definition at line 87 of file test_numpy_array.cpp.
std::vector<DtypeCheck> get_concrete_dtype_checks | ( | ) |
Definition at line 33 of file test_numpy_array.cpp.
DtypeCheck get_dtype_check | ( | const char * | name | ) |
Definition at line 25 of file test_numpy_array.cpp.
DtypeSizeCheck get_dtype_size_check | ( | ) |
Definition at line 54 of file test_numpy_array.cpp.
std::vector<DtypeSizeCheck> get_platform_dtype_size_checks | ( | ) |
Definition at line 63 of file test_numpy_array.cpp.
py::ssize_t index_at | ( | const arr & | a, |
Ix... | idx | ||
) |
Definition at line 110 of file test_numpy_array.cpp.
py::ssize_t index_at_t | ( | const arr_t & | a, |
Ix... | idx | ||
) |
Definition at line 114 of file test_numpy_array.cpp.
Definition at line 130 of file test_numpy_array.cpp.
Definition at line 92 of file test_numpy_array.cpp.
Definition at line 101 of file test_numpy_array.cpp.
py::ssize_t offset_at | ( | const arr & | a, |
Ix... | idx | ||
) |
Definition at line 118 of file test_numpy_array.cpp.
py::ssize_t offset_at_t | ( | const arr_t & | a, |
Ix... | idx | ||
) |
Definition at line 122 of file test_numpy_array.cpp.
TEST_SUBMODULE | ( | numpy_array | , |
sm | |||
) |
Definition at line 162 of file test_numpy_array.cpp.
|
static |
Definition at line 160 of file test_numpy_array.cpp.