コード例 #1
0
 def __iter__(self):
     return imap(lambda x: (self.svd.u.label(0, x[0]), self.svd.v.label(0, x[1])), outer_tuple_iterator(self.shape))
コード例 #2
0
ファイル: sliced_view.py プロジェクト: Web5design/divisi
 def _iter_all(self):
     # Iterates over all possible indices, instead of just the defined
     # indices
     return outer_tuple_iterator(self.shape)
コード例 #3
0
ファイル: sliced_view.py プロジェクト: Web5design/divisi
 def _iter_all(self):
     # Iterates over all possible indices, instead of just the defined
     # indices
     return outer_tuple_iterator(self.shape)