def __init__(self, n, source, target, bias, opts=None): MapSeeker.__init__(self, opts) shape = bias.shape if not isinstance(bias, Sparse): bias = Sparse(bias) bias.squeeze() self.bias = bias self._params = (n, source, target) self._space = Sparse(None, shape) self.prep(n, source, target)