@classmethod
    def get_foreign_keys(cls):
        foreign_keys = {}
        for field in cls._meta.fields:
            if (
                field.get_internal_type() == 'ForeignKey' and
                field.name != 'parent'
            ):
                foreign_keys[field.name] = field.rel.to
        return foreign_keys
This routine computes the singular value decomposition of a matrix A.
dataset/ETHPy150Open tabo/django-treebeard/treebeard/models.py/Node.get_foreign_keys--crossover with--dataset/ETHPy150Open fredrik-johansson/mpmath/mpmath/matrices/eigen_symmetric.py/svd_r_raw