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 />

Table 3.6 – continued from previous page<br />

iterkeys D.iterkeys() -> an iterator over the keys of D<br />

itervalues D.itervalues() -> an iterator over the values of D<br />

keys D.keys() -> list of D’s keys<br />

listprint(*args, **kwds) listprint is deprecated!<br />

matmat(*args, **kwds) matmat is deprecated!<br />

matvec(*args, **kwds) matvec is deprecated!<br />

mean([axis]) Average the matrix over the given axis.<br />

multiply(other) Point-wise multiplication by another matrix<br />

nonzero() nonzero indices<br />

pop D.pop(k[,d]) -> v, remove specified key and return the corresponding value<br />

popitem D.popitem() -> (k, v), remove and return some (key, value) pair as a<br />

reshape(shape)<br />

resize(shape) Resize the matrix to dimensions given by ‘shape’, removing any<br />

rmatvec(*args, **kwds) rmatvec is deprecated!<br />

rowcol(*args, **kwds) rowcol is deprecated!<br />

save(file_name[, format])<br />

set_shape(shape)<br />

setdefault D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D<br />

setdiag(values[, k]) Fills the diagonal elements {a_ii} with the values from the given sequence.<br />

split(cols_or_rows[, columns])<br />

sum([axis]) Sum the matrix over the given axis.<br />

take(cols_or_rows[, columns])<br />

toarray()<br />

tobsr([blocksize])<br />

tocoo() Return a copy of this matrix in COOrdinate format<br />

tocsc() Return a copy of this matrix in Compressed Sparse Column format<br />

tocsr() Return a copy of this matrix in Compressed Sparse Row format<br />

todense()<br />

todia()<br />

todok([copy])<br />

tolil()<br />

transpose() Return the transpose<br />

update D.update(E, **F) -> None. Update D from E and F: for k in E: D[k] = E[k]<br />

values D.values() -> list of D’s values<br />

asformat(format)<br />

Return this matrix in a given sparse format<br />

Parameters<br />

format : {string, None}<br />

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 />

372 Chapter 3. Reference

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

Saved successfully!

Ooh no, something went wrong!