MCPcopy Create free account
hub / github.com/numpy/numpy / PyArray_DescrAlignConverter

Function PyArray_DescrAlignConverter

numpy/core/src/multiarray/descriptor.c:3131–3136  ·  view source on GitHub ↗

NUMPY_API * * Get type-descriptor from an object forcing alignment if possible * None goes to DEFAULT type. * * any object with the .fields attribute and/or .itemsize attribute (if the *.fields attribute does not give the total size -- i.e. a partial record * naming). If itemsize is given it must be >= size computed from fields * * The .fields attribute must return a convertible dictiona

Source from the content-addressed store, hash-verified

3129 * Result inherits from NPY_VOID.
3130*/
3131NPY_NO_EXPORT int
3132PyArray_DescrAlignConverter(PyObject *obj, PyArray_Descr **at)
3133{
3134 *at = _convert_from_any(obj, 1);
3135 return (*at) ? NPY_SUCCEED : NPY_FAIL;
3136}
3137
3138/*NUMPY_API
3139 *

Callers 1

Calls 1

_convert_from_anyFunction · 0.85

Tested by

no test coverage detected