Changeset 2116 for trunk/brian/utils/sparse_patch/0_7_1.py
- Timestamp:
- 08/10/10 17:18:06 (22 months ago)
- Files:
-
- 1 modified
-
trunk/brian/utils/sparse_patch/0_7_1.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/brian/utils/sparse_patch/0_7_1.py
r2020 r2116 62 62 sparse.lil_matrix.__setitem__(self, index, [W] * len(xrange(*j.indices(self.shape[1])))) 63 63 elif isinstance(i, slice) and isinstance(j, slice) and isNumberType(W): 64 n = len(xrange(* j.indices(self.shape[0])))64 n = len(xrange(*i.indices(self.shape[0]))) 65 65 m = len(xrange(*j.indices(self.shape[1]))) 66 print index 67 print n, m 66 68 sparse.lil_matrix.__setitem__(self, index, W * numpy.ones((n, m))) 67 69 else:
