---------------------------------------------------------------------------
KeyboardInterrupt Traceback (most recent call last)
<ipython-input-7-6d9812a088fc> in <module>()
----> 1 D = gaussian_blur_matrix(262144, 41, 21)
<ipython-input-6-4fcc8f6bdadc> in gaussian_blur_matrix(dim, kernelsize, kernelvariance)
21 #D = np.zeros((dim, dim+kl-1))
22 for idx in range(dim):
---> 23 D[idx,idx:idx+kl] = kernel
24 D = D[:,((kl-1)/2):-(kl-1)/2]
25 return D.T
/Users/michael/coding/RIKEN/env/playground/lib/python2.7/site-packages/scipy/sparse/compressed.pyc in __setitem__(self, index, x)
654 return
655 i, j = self._swap((i.ravel(), j.ravel()))
--> 656 self._set_many(i, j, x.ravel())
657
658 def _setdiag(self, values, k):
/Users/michael/coding/RIKEN/env/playground/lib/python2.7/site-packages/scipy/sparse/compressed.pyc in _set_many(self, i, j, x)
738 j = j[mask]
739 j[j < 0] += N
--> 740 self._insert_many(i, j, x[mask])
741
742 def _insert_many(self, i, j, x):
/Users/michael/coding/RIKEN/env/playground/lib/python2.7/site-packages/scipy/sparse/compressed.pyc in _insert_many(self, i, j, x)
805 # TODO: only sort where necessary
806 self.has_sorted_indices = False
--> 807 self.sort_indices()
808
809 self.check_format(full_check=False)
/Users/michael/coding/RIKEN/env/playground/lib/python2.7/site-packages/scipy/sparse/compressed.pyc in sort_indices(self)
1039 if not self.has_sorted_indices:
1040 fn = _sparsetools.csr_sort_indices
-> 1041 fn(len(self.indptr) - 1, self.indptr, self.indices, self.data)
1042 self.has_sorted_indices = True
1043
KeyboardInterrupt: