np = installNumPyMethods()This function loads the NumPy module and installs several toPython and value(PythonObject) methods for converting back and forth between Macaulay2 matrices/vectors and NumPy arrays.
|
|
|
|
|
The output of the call to installNumPyMethods is a PythonObject referring to the module itself and can be used to call NumPy functions directly.
|
The object installNumPyMethods is a function closure.
The source of this document is in Python/doc/numpy.m2:77:0.