ake sure no negative value in X.

        Parameters
        ----------
        X :  array-like or sparse matrix

        Z