Did I find the right examples for you? yes no

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

src/s/c/scipy-HEAD/scipy/sparse/bsr.py   scipy(Download)
        # ideally we'd take the GCDs of the blocksize dimensions
        # and explode self and other to match
        other = self.__class__(other, blocksize=self.blocksize)
        # e.g. bsr_plus_bsr, etc.
        data = data.reshape(-1,R,C)
        return self.__class__((data, indices, indptr), shape=self.shape)
    # needed by _data_matrix
        if copy:
            return self.__class__((data,self.indices.copy(),self.indptr.copy()), \
            return self.__class__((data,self.indices,self.indptr), \

src/s/c/scipy-HEAD/scipy/sparse/csr.py   scipy(Download)
        shape =  (i1 - i0, j1 - j0)
        return self.__class__( (data,indices,indptr), shape=shape )