kerncraft/kernel.py
def index_order(self, sources=True, destinations=True):
        """
        Return the order of indices as they appear in array references.

        Use *source* and *destination* to filter output
        """
        if sources:
            arefs = chain(*self.sources.values())
        else:
            arefs = []
        if destinations:
            arefs = chain(arefs, *self.destinations.values())

        ret = []
        for a in [aref for aref in arefs if aref is not None]:
            ref = []
            for expr in a:
                ref.append(expr.free_symbols)
            ret.append(ref)

        return ret
def index_order(self, sources=True, destinations=True):
        if sources:
            arefs = chain(*self.sources.values())
        else:
            arefs = []
        if destinations:
            arefs = chain(arefs, *self.destinations.values())

        ret = []
        for a in [aref for aref in arefs if aref is not None]:
            ref = []
            for expr in a:
                ref.append(expr.free_symbols)
            ret.append(ref)

        return ret
def index_order ( self , sources = True , destinations = True ) : if sources : arefs = chain ( * self . sources . values ( ) ) else : arefs = [ ] if destinations : arefs = chain ( arefs , * self . destinations . values ( ) ) ret = [ ] for a in [ aref for aref in arefs if aref is not None ] : ref = [ ] for expr in a : ref . append ( expr . free_symbols ) ret . append ( ref ) return ret
Return the order of indices as they appear in array references.

        Use *source* and *destination* to filter output
Return the order of indices as they appear in array references .