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.

cho_solve(clow, b)<br />

Solve a previously factored symmetric system of equations.<br />

The equation system is<br />

A x = b, A = U^H U = L L^H<br />

and A is real symmetric or complex Hermitian.<br />

Parameters<br />

clow : tuple (c, lower)<br />

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

Cholesky factor and a flag indicating whether it is lower triangular. The return value<br />

from cho_factor can be used.<br />

b : array<br />

Right-hand side of the equation system<br />

First input is a tuple (LorU, lower) which is the output to cho_factor. :<br />

Second input is the right-hand side. :<br />

Returns<br />

x : array<br />

Solution to the equation system<br />

qr(a, overwrite_a=0, lwork=None, econ=None, mode=’qr’)<br />

Compute QR decomposition of a matrix.<br />

Calculate the decomposition :lm:‘A = Q R‘ where Q is unitary/orthogonal and R upper triangular.<br />

Parameters<br />

a : array, shape (M, N)<br />

Matrix to be decomposed<br />

overwrite_a : boolean<br />

Whether data in a is overwritten (may improve performance)<br />

lwork : integer<br />

Work array size, lwork >= a.shape[1]. If None or -1, an optimal size is computed.<br />

econ : boolean<br />

Whether to compute the economy-size QR decomposition, making shapes of Q and<br />

R (M, K) and (K, N) instead of (M,M) and (M,N). K=min(M,N). Default is False.<br />

mode : {‘qr’, ‘r’}<br />

Determines what information is to be returned: either both Q and R or only R.<br />

Returns<br />

(if mode == ‘qr’) :<br />

Q : double or complex array, shape (M, M) or (M, K) for econ==True<br />

(for any mode) :<br />

R : double or complex array, shape (M, N) or (K, N) for econ==True<br />

Size K = min(M, N)<br />

Raises LinAlgError if decomposition fails :<br />

3.7. Linear algebra (<strong>scipy</strong>.linalg) 239

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

Saved successfully!

Ooh no, something went wrong!