MCPcopy Create free account
hub / github.com/pydata/numexpr / PySet_vml_accuracy_mode

Function PySet_vml_accuracy_mode

numexpr3/module.cpp:344–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342PyDoc_STRVAR(SetVMLAccuracy__doc__,
343"Set accuracy mode for VML functions.\n");
344static PyObject*
345PySet_vml_accuracy_mode(PyObject *self, PyObject *args) {
346 int mode_in, mode_old;
347 if (!PyArg_ParseTuple(args, "i", &mode_in))
348 return NULL;
349 mode_old = vmlGetMode() & VML_ACCURACY_MASK;
350 vmlSetMode((mode_in & VML_ACCURACY_MASK) | VML_ERRMODE_IGNORE );
351 return Py_BuildValue("i", mode_old);
352}
353
354PyDoc_STRVAR(SetVMLNumThreads__doc__,
355"Suggests a maximum number of threads to be used in VML operations.\n");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…