#include <user-type.hpp>
|
static void | copyswap (void *dst, void *src, int swap, void *) |
|
static void | copyswapn (void *dst, long dstride, void *src, long sstride, long n, int swap, void *array) |
|
static void | dotfunc (void *ip0_, npy_intp is0, void *ip1_, npy_intp is1, void *op, npy_intp n, void *) |
|
static int | fill (void *data_, npy_intp length, void *) |
|
static int | fillwithscalar (void *buffer_, npy_intp length, void *value, void *) |
|
static PyObject * | getitem (void *ip, void *ap) |
|
static npy_bool | nonzero (void *ip, void *array) |
|
static int | setitem (PyObject *src_obj, void *dest_ptr, void *array) |
| Set a python object in an array. It sets the Python object "item" into the array, arr, at the position pointed to by data. This function deals with “misbehaved” arrays. If successful, a zero is returned, otherwise, a negative one is returned (and a Python error set). More...
|
|
template<typename T>
struct eigenpy::internal::SpecialMethods< T, NPY_USERDEF >
Definition at line 94 of file user-type.hpp.
◆ copyswap()
◆ copyswapn()
◆ dotfunc()
◆ fill()
◆ fillwithscalar()
◆ getitem()
◆ nonzero()
◆ setitem()
Set a python object in an array. It sets the Python object "item" into the array, arr, at the position pointed to by data. This function deals with “misbehaved” arrays. If successful, a zero is returned, otherwise, a negative one is returned (and a Python error set).
- Parameters
-
[in] | src_obj | Pointer to the location of the python object |
[in] | dest_ptr | Pointer to the location in the array where the source object should be saved. |
[in] | array | Pointer to the location of the array |
- Returns
- int Success(0) or Failure(-1)
Definition at line 129 of file user-type.hpp.
The documentation for this struct was generated from the following file: