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.

desired sparse matrix format<br />

• None for no format conversion<br />

• “csr” for csr_matrix format<br />

• “csc” for csc_matrix format<br />

• “lil” for lil_matrix format<br />

• “dok” for dok_matrix format and so on<br />

asfptype()<br />

Upcast matrix to a floating point format (if necessary)<br />

astype(t)<br />

check_format(full_check=True)<br />

check whether the matrix format is valid<br />

conj()<br />

conjugate()<br />

copy()<br />

Parameters<br />

- full_check : {bool}<br />

• True - rigorous check, O(N) operations : default<br />

• False - basic check, O(1) operations<br />

diagonal()<br />

Returns the main diagonal of the matrix<br />

dot(*args, **kwds)<br />

dot is deprecated!<br />

eliminate_zeros()<br />

Remove zero entries from the matrix<br />

The is an in place operation<br />

ensure_sorted_indices(inplace=False)<br />

Return a copy of this matrix where the column indices are sorted<br />

getH()<br />

get_shape()<br />

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

getcol(j)<br />

Returns a copy of column j of the matrix, as an (m x 1) sparse matrix (column vector).<br />

getdata(*args, **kwds)<br />

getdata is deprecated!<br />

getformat()<br />

3.14. Sparse matrices (<strong>scipy</strong>.sparse) 353

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

Saved successfully!

Ooh no, something went wrong!