Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

src/s/c/scipy-HEAD/scipy/sparse/compressed.py   scipy(Download)
    def __add__(self,other):
        # First check if argument is a scalar
        if isscalarlike(other):
            if other == 0:
                return self.copy()
    def __sub__(self,other):
        # First check if argument is a scalar
        if isscalarlike(other):
            if other == 0:
                return self.copy()
    def __rsub__(self,other):  # other - self
        #note: this can't be replaced by other + (-self) for unsigned types
        if isscalarlike(other):
            if other == 0:
                return -self.copy()
    def sorted_indices(self):
        """Return a copy of this matrix with sorted indices
        """
        A = self.copy()
        A.sort_indices()

src/c/o/cobrapy-HEAD/cobra/oven/danielhyduke/jython/scipy/sparse/compressed.py   cobrapy(Download)
    def sorted_indices(self):
        """Return a copy of this matrix with sorted indices
        """
        A = self.copy()
        A.sort_indices()

src/s/c/scipy-HEAD/scipy/sparse/dia.py   scipy(Download)
    def todia(self,copy=False):
        if copy:
            return self.copy()
        else:
            return self

src/s/c/scipy-HEAD/scipy/sparse/coo.py   scipy(Download)
    def tocoo(self, copy=False):
        if copy:
            return self.copy()
        else:
            return self

src/s/c/scipy-0.13.3/scipy/sparse/dia.py   scipy(Download)
    def todia(self,copy=False):
        if copy:
            return self.copy()
        else:
            return self