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))
def _iter_all(self): # Iterates over all possible indices, instead of just the defined # indices return outer_tuple_iterator(self.shape)