Changeset 1849
- Timestamp:
- Sep 21, 2005, 4:59:07 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/sparse.py
r1848 r1849 232 232 233 233 Sparse_CSR(A) #creates csr sparse matrix from sparse matrix 234 Matrices are not built using this format, since it's painful to 235 add values to an existing sparse_CSR instance (hence there are no 236 objects to do this.) 237 238 Rather, build a matrix, and convert it to this format for a speed 239 increase. 234 240 235 241 data - a 1D array of the data 236 242 Colind - The ith item in this 1D array is the column index of the 237 243 ith data in the data array 244 rowptr - 1D array, with the index representing the row of the matrix. 245 The item in the row represents the index into colind of the 246 first data value of this row. 247 Regard it as a pointer into the colind array, for the ith row. 248 249 238 250 """ 239 251
Note: See TracChangeset
for help on using the changeset viewer.