15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Notes<br />

extra_argv : list, optional<br />

List with any extra arguments to pass to nosetests.<br />

doctests : bool, optional<br />

If True, run doctests in module. Default is False.<br />

coverage : bool, optional<br />

SciPy Reference Guide, Release 0.8.dev<br />

If True, report coverage of NumPy code. Default is False. (This requires the ‘coverage<br />

module:<br />

Returns<br />

result : object<br />

‘_).<br />

Returns the result of running the tests as a nose.result.TextTestResult<br />

object.<br />

Each NumPy module exposes test in its namespace to run all tests for it. For example, to run all tests for<br />

numpy.lib:<br />

>>> np.lib.test()<br />

Examples<br />

>>> result = np.lib.test()<br />

Running unit tests for numpy.lib<br />

...<br />

Ran 976 tests in 3.933s<br />

OK<br />

>>> result.errors<br />

[]<br />

>>> result.knownfail<br />

[]<br />

use_solver(**kwargs)<br />

Valid keyword arguments with defaults (other ignored):<br />

useUmfpack = True assumeSortedIndices = False<br />

The default sparse solver is umfpack when available. This can be changed by passing useUmfpack = False,<br />

which then causes the always present SuperLU based solver to be used.<br />

Umfpack requires a CSR/CSC matrix to have sorted column/row indices. If sure that the matrix fulfills this,<br />

pass assumeSortedIndices=True to gain some speed.<br />

3.16 Spatial algorithms and data structures (<strong>scipy</strong>.spatial)<br />

Warning: This documentation is work-in-progress and unorganized.<br />

3.16. Spatial algorithms and data structures (<strong>scipy</strong>.spatial) 399

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!