15.12.2012 Views

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

scipy tutorial - Baustatik-Info-Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

Notes<br />

The determinant is computed via LU factorization, LAPACK routine z/dgetrf.<br />

norm(a, ord=None)<br />

Matrix or vector norm.<br />

This function is able to return one of seven different matrix norms, or one of an infinite number of vector norms<br />

(described below), depending on the value of the ord parameter.<br />

Notes<br />

Parameters<br />

x : array_like, shape (M,) or (M, N)<br />

Input array.<br />

ord : {non-zero int, inf, -inf, ‘fro’}, optional<br />

Returns<br />

n : float<br />

Order of the norm (see table under Notes). inf means numpy’s inf object.<br />

Norm of the matrix or vector.<br />

For values of ord >> from numpy import linalg as LA<br />

>>> a = np.arange(9) - 4<br />

>>> a<br />

array([-4, -3, -2, -1, 0, 1, 2, 3, 4])<br />

>>> b = a.reshape((3, 3))<br />

>>> b<br />

array([[-4, -3, -2],<br />

[-1, 0, 1],<br />

[ 2, 3, 4]])<br />

220 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!