Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Private Types | Static Private Member Functions | List of all members
npy_api Struct Reference

#include <numpy.h>

Classes

struct  PyArray_Dims
 

Public Types

enum  constants {
  NPY_ARRAY_C_CONTIGUOUS_ = 0x0001, NPY_ARRAY_F_CONTIGUOUS_ = 0x0002, NPY_ARRAY_OWNDATA_ = 0x0004, NPY_ARRAY_FORCECAST_ = 0x0010,
  NPY_ARRAY_ENSUREARRAY_ = 0x0040, NPY_ARRAY_ALIGNED_ = 0x0100, NPY_ARRAY_WRITEABLE_ = 0x0400, NPY_BOOL_ = 0,
  NPY_BYTE_, NPY_UBYTE_, NPY_SHORT_, NPY_USHORT_,
  NPY_INT_, NPY_UINT_, NPY_LONG_, NPY_ULONG_,
  NPY_LONGLONG_, NPY_ULONGLONG_, NPY_FLOAT_, NPY_DOUBLE_,
  NPY_LONGDOUBLE_, NPY_CFLOAT_, NPY_CDOUBLE_, NPY_CLONGDOUBLE_,
  NPY_OBJECT_ = 17, NPY_STRING_, NPY_UNICODE_, NPY_VOID_,
  NPY_INT8_ = NPY_BYTE_, NPY_UINT8_ = NPY_UBYTE_, NPY_INT16_ = NPY_SHORT_, NPY_UINT16_ = NPY_USHORT_,
  NPY_INT32_ = platform_lookup<std::int32_t, long, int, short>(NPY_LONG_, NPY_INT_, NPY_SHORT_), NPY_UINT32_, NPY_INT64_ = platform_lookup<std::int64_t, long, long long, int>(NPY_LONG_, NPY_LONGLONG_, NPY_INT_), NPY_UINT64_
}
 

Public Member Functions

bool PyArray_Check_ (PyObject *obj) const
 
bool PyArrayDescr_Check_ (PyObject *obj) const
 

Static Public Member Functions

static npy_apiget ()
 

Public Attributes

int(* PyArray_CopyInto_ )(PyObject *, PyObject *)
 
int(* PyArray_DescrConverter_ )(PyObject *, PyObject **)
 
PyObject *(* PyArray_DescrFromScalar_ )(PyObject *)
 
PyObject *(* PyArray_DescrFromType_ )(int)
 
PyObject *(* PyArray_DescrNewFromType_ )(int)
 
bool(* PyArray_EquivTypes_ )(PyObject *, PyObject *)
 
PyObject *(* PyArray_FromAny_ )(PyObject *, PyObject *, int, int, int, PyObject *)
 
int(* PyArray_GetArrayParamsFromObject_ )(PyObject *, PyObject *, unsigned char, PyObject **, int *, Py_intptr_t *, PyObject **, PyObject *)
 
unsigned int(* PyArray_GetNDArrayCFeatureVersion_ )()
 
PyObject *(* PyArray_NewCopy_ )(PyObject *, int)
 
PyObject *(* PyArray_NewFromDescr_ )(PyTypeObject *, PyObject *, int, Py_intptr_t const *, Py_intptr_t const *, void *, int, PyObject *)
 
PyObject *(* PyArray_Newshape_ )(PyObject *, PyArray_Dims *, int)
 
PyObject *(* PyArray_Resize_ )(PyObject *, PyArray_Dims *, int, int)
 
int(* PyArray_SetBaseObject_ )(PyObject *, PyObject *)
 
PyObject *(* PyArray_Squeeze_ )(PyObject *)
 
PyTypeObject * PyArray_Type_
 
PyObject *(* PyArray_View_ )(PyObject *, PyObject *, PyObject *)
 
PyTypeObject * PyArrayDescr_Type_
 
PyTypeObject * PyVoidArrType_Type_
 

Private Types

enum  functions {
  API_PyArray_GetNDArrayCFeatureVersion = 211, API_PyArray_Type = 2, API_PyArrayDescr_Type = 3, API_PyVoidArrType_Type = 39,
  API_PyArray_DescrFromType = 45, API_PyArray_DescrFromScalar = 57, API_PyArray_FromAny = 69, API_PyArray_Resize = 80,
  API_PyArray_CopyInto = 82, API_PyArray_NewCopy = 85, API_PyArray_NewFromDescr = 94, API_PyArray_DescrNewFromType = 96,
  API_PyArray_Newshape = 135, API_PyArray_Squeeze = 136, API_PyArray_View = 137, API_PyArray_DescrConverter = 174,
  API_PyArray_EquivTypes = 182, API_PyArray_GetArrayParamsFromObject = 278, API_PyArray_SetBaseObject = 282
}
 

Static Private Member Functions

static npy_api lookup ()
 

Detailed Description

Definition at line 138 of file numpy.h.

Member Enumeration Documentation

◆ constants

Enumerator
NPY_ARRAY_C_CONTIGUOUS_ 
NPY_ARRAY_F_CONTIGUOUS_ 
NPY_ARRAY_OWNDATA_ 
NPY_ARRAY_FORCECAST_ 
NPY_ARRAY_ENSUREARRAY_ 
NPY_ARRAY_ALIGNED_ 
NPY_ARRAY_WRITEABLE_ 
NPY_BOOL_ 
NPY_BYTE_ 
NPY_UBYTE_ 
NPY_SHORT_ 
NPY_USHORT_ 
NPY_INT_ 
NPY_UINT_ 
NPY_LONG_ 
NPY_ULONG_ 
NPY_LONGLONG_ 
NPY_ULONGLONG_ 
NPY_FLOAT_ 
NPY_DOUBLE_ 
NPY_LONGDOUBLE_ 
NPY_CFLOAT_ 
NPY_CDOUBLE_ 
NPY_CLONGDOUBLE_ 
NPY_OBJECT_ 
NPY_STRING_ 
NPY_UNICODE_ 
NPY_VOID_ 
NPY_INT8_ 
NPY_UINT8_ 
NPY_INT16_ 
NPY_UINT16_ 
NPY_INT32_ 
NPY_UINT32_ 
NPY_INT64_ 
NPY_UINT64_ 

Definition at line 139 of file numpy.h.

◆ functions

enum npy_api::functions
private
Enumerator
API_PyArray_GetNDArrayCFeatureVersion 
API_PyArray_Type 
API_PyArrayDescr_Type 
API_PyVoidArrType_Type 
API_PyArray_DescrFromType 
API_PyArray_DescrFromScalar 
API_PyArray_FromAny 
API_PyArray_Resize 
API_PyArray_CopyInto 
API_PyArray_NewCopy 
API_PyArray_NewFromDescr 
API_PyArray_DescrNewFromType 
API_PyArray_Newshape 
API_PyArray_Squeeze 
API_PyArray_View 
API_PyArray_DescrConverter 
API_PyArray_EquivTypes 
API_PyArray_GetArrayParamsFromObject 
API_PyArray_SetBaseObject 

Definition at line 241 of file numpy.h.

Member Function Documentation

◆ get()

static npy_api& npy_api::get ( )
inlinestatic

Definition at line 192 of file numpy.h.

◆ lookup()

static npy_api npy_api::lookup ( )
inlinestaticprivate

Definition at line 263 of file numpy.h.

◆ PyArray_Check_()

bool npy_api::PyArray_Check_ ( PyObject *  obj) const
inline

Definition at line 197 of file numpy.h.

◆ PyArrayDescr_Check_()

bool npy_api::PyArrayDescr_Check_ ( PyObject *  obj) const
inline

Definition at line 200 of file numpy.h.

Member Data Documentation

◆ PyArray_CopyInto_

int(* npy_api::PyArray_CopyInto_) (PyObject *, PyObject *)

Definition at line 216 of file numpy.h.

◆ PyArray_DescrConverter_

int(* npy_api::PyArray_DescrConverter_) (PyObject *, PyObject **)

Definition at line 223 of file numpy.h.

◆ PyArray_DescrFromScalar_

PyObject*(* npy_api::PyArray_DescrFromScalar_) (PyObject *)

Definition at line 221 of file numpy.h.

◆ PyArray_DescrFromType_

PyObject*(* npy_api::PyArray_DescrFromType_) (int)

Definition at line 205 of file numpy.h.

◆ PyArray_DescrNewFromType_

PyObject*(* npy_api::PyArray_DescrNewFromType_) (int)

Definition at line 215 of file numpy.h.

◆ PyArray_EquivTypes_

bool(* npy_api::PyArray_EquivTypes_) (PyObject *, PyObject *)

Definition at line 224 of file numpy.h.

◆ PyArray_FromAny_

PyObject*(* npy_api::PyArray_FromAny_) (PyObject *, PyObject *, int, int, int, PyObject *)

Definition at line 222 of file numpy.h.

◆ PyArray_GetArrayParamsFromObject_

int(* npy_api::PyArray_GetArrayParamsFromObject_) (PyObject *, PyObject *, unsigned char, PyObject **, int *, Py_intptr_t *, PyObject **, PyObject *)

Definition at line 225 of file numpy.h.

◆ PyArray_GetNDArrayCFeatureVersion_

unsigned int(* npy_api::PyArray_GetNDArrayCFeatureVersion_) ()

Definition at line 204 of file numpy.h.

◆ PyArray_NewCopy_

PyObject*(* npy_api::PyArray_NewCopy_) (PyObject *, int)

Definition at line 217 of file numpy.h.

◆ PyArray_NewFromDescr_

PyObject*(* npy_api::PyArray_NewFromDescr_) (PyTypeObject *, PyObject *, int, Py_intptr_t const *, Py_intptr_t const *, void *, int, PyObject *)

Definition at line 206 of file numpy.h.

◆ PyArray_Newshape_

PyObject*(* npy_api::PyArray_Newshape_) (PyObject *, PyArray_Dims *, int)

Definition at line 237 of file numpy.h.

◆ PyArray_Resize_

PyObject*(* npy_api::PyArray_Resize_) (PyObject *, PyArray_Dims *, int, int)

Definition at line 236 of file numpy.h.

◆ PyArray_SetBaseObject_

int(* npy_api::PyArray_SetBaseObject_) (PyObject *, PyObject *)

Definition at line 235 of file numpy.h.

◆ PyArray_Squeeze_

PyObject*(* npy_api::PyArray_Squeeze_) (PyObject *)

Definition at line 233 of file numpy.h.

◆ PyArray_Type_

PyTypeObject* npy_api::PyArray_Type_

Definition at line 218 of file numpy.h.

◆ PyArray_View_

PyObject*(* npy_api::PyArray_View_) (PyObject *, PyObject *, PyObject *)

Definition at line 238 of file numpy.h.

◆ PyArrayDescr_Type_

PyTypeObject* npy_api::PyArrayDescr_Type_

Definition at line 220 of file numpy.h.

◆ PyVoidArrType_Type_

PyTypeObject* npy_api::PyVoidArrType_Type_

Definition at line 219 of file numpy.h.


The documentation for this struct was generated from the following file:


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:41:03