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.

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

setdiag(values, k=0)<br />

Fills the diagonal elements {a_ii} with the values from the given sequence. If k != 0, fills the off-diagonal<br />

elements {a_{i,i+k}} instead.<br />

values may have any length. If the diagonal is longer than values, then the remaining diagonal entries will<br />

not be set. If values if longer than the diagonal, then the remaining values are ignored.<br />

sort_indices()<br />

Sort the indices of this matrix in place<br />

sorted_indices()<br />

Return a copy of this matrix with sorted indices<br />

sum(axis=None)<br />

Sum the matrix over the given axis. If the axis is None, sum over both rows and columns, returning a<br />

scalar.<br />

sum_duplicates()<br />

Eliminate duplicate matrix entries by adding them together<br />

The is an in place operation<br />

toarray()<br />

tobsr(blocksize=None, copy=True)<br />

tocoo(copy=True)<br />

Return a COOrdinate representation of this matrix<br />

tocsc()<br />

When copy=False the index and data arrays are not copied.<br />

tocsr(copy=False)<br />

todense()<br />

todia()<br />

todok()<br />

tolil()<br />

transpose(copy=False)<br />

class bsr_matrix(arg1, shape=None, dtype=None, copy=False, blocksize=None)<br />

Block Sparse Row matrix<br />

This can be instantiated in several ways:<br />

bsr_matrix(D, [blocksize=(R,C)])<br />

with a dense matrix or rank-2 ndarray D<br />

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

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

Saved successfully!

Ooh no, something went wrong!