def svd(self, k=5, ascending=False):
        if ascending:
            u, s, v_t = sp.linalg.svds(self.matrix, k=k, which='SM')
        else:
            u, s, v_t = sp.linalg.svds(self.matrix, k=k, which='LM')

        u = self._new_instance(u, col2word=list(range(k)))[:,::-1]
        s = self._new_instance(s, row2word=[0], col2word=list(range(k)))[:,::-1]
        v_t = self._new_instance(v_t, row2word=list(range(k)))[::-1,:]
        return u, s, v_t
Render a GET request to the .well-know/core link.
dataset/ETHPy150Open jimmycallin/pydsm/pydsm/indexmatrix.py/IndexMatrix.svd--crossover with--dataset/ETHPy150Open Tanganelli/CoAPthon/coapthon/layers/resourcelayer.py/ResourceLayer.discover