#include "cpyrt.h"#include "Converters.h"#include "CustomPyTypes.h"#include "LowLevelViews.h"#include "PyStrings.h"#include <assert.h>#include <limits.h>#include <map>#include <string.h>Namespaces | |
| namespace | cppjit |
| namespace | cppjit::cpyrt |
Macros | |
| #define | ADJUST_PTR(ptr, suboffsets, dim) (HAVE_PTR(suboffsets, dim) ? *((char**)ptr) + suboffsets[dim] : ptr) |
| #define | CPPJIT_IMPL_VIEW_CREATOR(type) |
| #define | CPPJIT_RET_W_CREATOR(type, fname) |
| #define | CPYRT_LL_FLAG_GETSET(name, flag, doc) |
| #define | HAVE_PTR(suboffsets, dim) (suboffsets && suboffsets[dim] >= 0) |
| #define | HAVE_SUBOFFSETS_IN_LAST_DIM(view) (view->suboffsets && view->suboffsets[dest->ndim - 1] >= 0) |
Functions | |
| static void | copy_base (const Py_ssize_t *shape, Py_ssize_t itemsize, char *dptr, const Py_ssize_t *dstrides, const Py_ssize_t *dsuboffsets, char *sptr, const Py_ssize_t *sstrides, const Py_ssize_t *ssuboffsets, char *mem) |
| static int | copy_single (Py_buffer *dest, Py_buffer *src) |
| template<typename T > | |
| static cpyrt::LowLevelView * | CreateLowLevelViewT (T **address, cpyrt::cdims_t shape, const char *format=nullptr, const char *name=nullptr) |
| template<typename T > | |
| static cpyrt::LowLevelView * | CreateLowLevelViewT (T *address, cpyrt::cdims_t shape, const char *format=nullptr, const char *name=nullptr, Py_ssize_t itemsize=-1) |
| static bool | equiv_shape (const Py_buffer *dest, const Py_buffer *src) |
| static bool | equiv_structure (const Py_buffer *dest, const Py_buffer *src) |
| static Py_ssize_t | fake_max (size_t elemsize) |
| static int | init_slice (Py_buffer *base, PyObject *_key, int dim) |
| static Py_ssize_t | is_multiindex (PyObject *key) |
| static bool | is_multislice (PyObject *key) |
| static int | last_dim_is_contiguous (const Py_buffer *dest, const Py_buffer *src) |
| static PyObject * | ll_array (cpyrt::LowLevelView *self, PyObject *args, PyObject *kwds) |
| static PyObject * | ll_as_string (cpyrt::LowLevelView *self) |
| static int | ll_ass_sub (cpyrt::LowLevelView *self, PyObject *key, PyObject *value) |
| static void | ll_dealloc (cpyrt::LowLevelView *pyobj) |
| static int | ll_getbuf (cpyrt::LowLevelView *self, Py_buffer *view, int flags) |
| static PyObject * | ll_getcpparray (cpyrt::LowLevelView *pyobj) |
| static PyObject * | ll_getownership (cpyrt::LowLevelView *pyobj) |
| static PyObject * | ll_item (cpyrt::LowLevelView *self, Py_ssize_t index) |
| static PyObject * | ll_item_multi (cpyrt::LowLevelView *self, PyObject *tup) |
| static PyObject * | ll_iter (PyObject *self) |
| static Py_ssize_t | ll_length (cpyrt::LowLevelView *self) |
| static cpyrt::LowLevelView * | ll_new (PyTypeObject *subtype, PyObject *, PyObject *) |
| static PyObject * | ll_reshape (cpyrt::LowLevelView *self, PyObject *shape) |
| static PyObject * | ll_reshape_error (cpyrt::LowLevelView *self, PyObject *shape, const char *why) |
| static int | ll_setcpparray (cpyrt::LowLevelView *pyobj, PyObject *value, void *) |
| static int | ll_setownership (cpyrt::LowLevelView *pyobj, PyObject *value, void *) |
| static int | ll_setshape (cpyrt::LowLevelView *self, PyObject *value, void *) |
| static PyObject * | ll_shape (cpyrt::LowLevelView *self) |
| static PyObject * | ll_subscript (cpyrt::LowLevelView *self, PyObject *key) |
| static PyObject * | ll_typecode (cpyrt::LowLevelView *self, void *) |
| static char * | lookup_dimension (Py_buffer &view, char *ptr, int dim, Py_ssize_t index) |
| static void * | ptr_from_index (cpyrt::LowLevelView *llview, Py_ssize_t index) |
| static void * | ptr_from_tuple (cpyrt::LowLevelView *llview, PyObject *tup) |
| static void | set_strides (Py_buffer &view, size_t itemsize, bool isfix) |
Variables | |
| static PyBufferProcs | ll_as_buffer |
| static PyMappingMethods | ll_as_mapping |
| static PySequenceMethods | ll_as_sequence |
| static PyGetSetDef | ll_getset [] |
| static PyMethodDef | ll_methods [] |
| PyTypeObject | cppjit::cpyrt::LowLevelView_Type |
| #define ADJUST_PTR | ( | ptr, | |
| suboffsets, | |||
| dim ) (HAVE_PTR(suboffsets, dim) ? *((char**)ptr) + suboffsets[dim] : ptr) |
Definition at line 126 of file LowLevelViews.cxx.
| #define CPPJIT_IMPL_VIEW_CREATOR | ( | type | ) |
Definition at line 1163 of file LowLevelViews.cxx.
| #define CPPJIT_RET_W_CREATOR | ( | type, | |
| fname ) |
Definition at line 1158 of file LowLevelViews.cxx.
| #define CPYRT_LL_FLAG_GETSET | ( | name, | |
| flag, | |||
| doc ) |
Definition at line 85 of file LowLevelViews.cxx.
| #define HAVE_PTR | ( | suboffsets, | |
| dim ) (suboffsets && suboffsets[dim] >= 0) |
Definition at line 124 of file LowLevelViews.cxx.
| #define HAVE_SUBOFFSETS_IN_LAST_DIM | ( | view | ) | (view->suboffsets && view->suboffsets[dest->ndim - 1] >= 0) |
Definition at line 131 of file LowLevelViews.cxx.
|
static |
Definition at line 177 of file LowLevelViews.cxx.
|
static |
Definition at line 207 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 1148 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 1087 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 145 of file LowLevelViews.cxx.
|
static |
Definition at line 163 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 40 of file LowLevelViews.cxx.
Definition at line 322 of file LowLevelViews.cxx.
|
static |
Definition at line 366 of file LowLevelViews.cxx.
Definition at line 349 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 135 of file LowLevelViews.cxx.
|
static |
Definition at line 818 of file LowLevelViews.cxx.
|
static |
Definition at line 882 of file LowLevelViews.cxx.
|
static |
Definition at line 498 of file LowLevelViews.cxx.
|
static |
Definition at line 63 of file LowLevelViews.cxx.
|
static |
Definition at line 597 of file LowLevelViews.cxx.
|
static |
Definition at line 109 of file LowLevelViews.cxx.
|
static |
Definition at line 108 of file LowLevelViews.cxx.
|
static |
Definition at line 383 of file LowLevelViews.cxx.
|
static |
Definition at line 409 of file LowLevelViews.cxx.
Definition at line 642 of file LowLevelViews.cxx.
|
static |
Definition at line 315 of file LowLevelViews.cxx.
|
static |
Definition at line 45 of file LowLevelViews.cxx.
|
static |
Definition at line 722 of file LowLevelViews.cxx.
|
static |
Definition at line 709 of file LowLevelViews.cxx.
|
static |
Definition at line 109 of file LowLevelViews.cxx.
|
static |
Definition at line 108 of file LowLevelViews.cxx.
|
static |
Definition at line 804 of file LowLevelViews.cxx.
|
static |
Definition at line 690 of file LowLevelViews.cxx.
|
static |
Definition at line 432 of file LowLevelViews.cxx.
|
static |
Definition at line 113 of file LowLevelViews.cxx.
|
static |
Definition at line 235 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 277 of file LowLevelViews.cxx.
|
static |
Definition at line 285 of file LowLevelViews.cxx.
|
inlinestatic |
Definition at line 24 of file LowLevelViews.cxx.
|
static |
Definition at line 684 of file LowLevelViews.cxx.
|
static |
Definition at line 663 of file LowLevelViews.cxx.
|
static |
Definition at line 670 of file LowLevelViews.cxx.
|
static |
Definition at line 911 of file LowLevelViews.cxx.
|
static |
Definition at line 900 of file LowLevelViews.cxx.