numpy Initialization

Modifications for numpy interactive use.

Also worth noting is how Numpy and Scipy entirely circumvent the typical help system, pydoc, and the paging functions in IPython with their numpy.info() and numpy.source() functions.

Autogenerated docs for Autogenerated docs for numpy-init

numpy_setup()[source][source]
set_numpy_printoptions(**kwargs)[source][source]

Define this function only if numpy can be imported.

But don’t end the script with sys.exit() because anything that imports this module will exit too. As the __init__.py imports this module the whole package breaks due to a simple installation issue.

Parameters

kwargs (dict) – Any options that should be overridden.

class make_array(n)[source][source]

Bases: object

__init__(n)[source][source]

Make Array: The function takes a positive integer and builds an empty array of size n x n.

Parameters

n (dimension) – Size of the array must be an integer and positive.

array[source]

NumPy array with size n X n

Type

numpy.ndarray