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 /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Python/doc/numpy.m2:77:0.