Changeset 3739 for trunk/scipy/sparse/dia.py
- Timestamp:
- 12/28/07 22:02:11 (18 months ago)
- Files:
-
- 1 modified
-
trunk/scipy/sparse/dia.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/scipy/sparse/dia.py
r3700 r3739 16 16 This can be instantiated in several ways: 17 17 - dia_matrix(D) 18 with a dense matrix18 - with a dense matrix 19 19 20 20 - dia_matrix(S) 21 with another sparse matrix S (equivalent to S.todia())21 - with another sparse matrix S (equivalent to S.todia()) 22 22 23 23 - dia_matrix((M, N), [dtype]) 24 to construct an empty matrix with shape (M, N)25 dtype is optional, defaulting to dtype='d'.24 - to construct an empty matrix with shape (M, N) 25 dtype is optional, defaulting to dtype='d'. 26 26 27 27 - dia_matrix((data, diags), shape=(M, N)) 28 where the data[k,:] stores the diagonal entries for 29 diagonal diag[k] (See example below) 30 31 32 *Examples* 33 ---------- 28 - where the data[k,:] stores the diagonal entries for 29 diagonal diag[k] (See example below) 30 31 32 Examples 33 ======== 34 34 35 35 36 >>> from scipy.sparse import *
