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.

getdata(ind)<br />

getformat()<br />

getmaxprint()<br />

getnnz()<br />

getrow(i)<br />

Returns a copy of row i of the matrix, as a (1 x n) sparse matrix (row vector).<br />

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

listprint is deprecated!<br />

Provides a way to print over a single index.<br />

matmat(other)<br />

matvec(other)<br />

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

mean(axis=None)<br />

Average the matrix over the given axis. If the axis is None, average over both rows and columns, returning<br />

a scalar.<br />

multiply(other)<br />

Point-wise multiplication by another matrix<br />

nonzero()<br />

nonzero indices<br />

Returns a tuple of arrays (row,col) containing the indices of the non-zero elements of the matrix.<br />

prune()<br />

Remove empty space after all non-zero elements.<br />

reshape(shape)<br />

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

rmatvec is deprecated!<br />

Multiplies the vector ‘other’ by the sparse matrix, returning a<br />

dense vector as a result.<br />

If ‘conjugate’ is True:<br />

Otherwise:<br />

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

rowcol is deprecated!<br />

• returns A.transpose().conj() * other<br />

• returns A.transpose() * other.<br />

save(file_name, format=’%d %d %fn’)<br />

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

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

Saved successfully!

Ooh no, something went wrong!