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

Function PyArray_OrderConverter

numpy/core/src/multiarray/conversion_utils.c:693–703  ·  view source on GitHub ↗

NUMPY_API * Convert an object to FORTRAN / C / ANY / KEEP */

Source from the content-addressed store, hash-verified

691 * Convert an object to FORTRAN / C / ANY / KEEP
692 */
693NPY_NO_EXPORT int
694PyArray_OrderConverter(PyObject *object, NPY_ORDER *val)
695{
696 /* Leave the desired default from the caller for Py_None */
697 if (object == Py_None) {
698 return NPY_SUCCEED;
699 }
700 return string_converter_helper(
701 object, (void *)val, order_parser, "order",
702 "must be one of 'C', 'F', 'A', or 'K'");
703}
704
705static int clipmode_parser(char const *str, Py_ssize_t length, void *data)
706{

Callers 2

array_einsumFunction · 0.85
convert_ufunc_argumentsFunction · 0.85

Calls 1

string_converter_helperFunction · 0.85

Tested by

no test coverage detected