def full(self):
        """Converts KTensor to a dense ndarray."""

        # Compute tensor unfolding along first mode
        unf = sci.dot(self.factors[0], khatri_rao(self.factors[1:]).T)

        # Inverse unfolding along first mode
        return sci.reshape(unf, self.shape)
def full ( self ) : unf = sci . dot ( self . factors [ 0 ] , khatri_rao ( self . factors [ 1 : ] ) . T ) return sci . reshape ( unf , self . shape )
Converts KTensor to a dense ndarray.