[SciPy-User] scipy 0.9 deb

Pauli Virtanen pav at iki.fi
Wed Nov 10 15:52:36 EST 2010


On Wed, 10 Nov 2010 20:55:14 +0100, Josselin Jacquard wrote:
> 2010/11/10 Pauli Virtanen <pav at iki.fi>:
[clip]
> I'm able to construct my Cloutch interpolator, but I don't know how to
> evaluate it on a given point.
> I see in the pyx file this declaration def _evaluate_${DTYPE}(self,
> np.ndarray[np.double_t, ndim=2] xi), but I don't know how to call it :
> 
> self.interpolator = CloughTocher2DInterpolator(self.srcdots, 
>                                                self.dstdots) 
> result = self.interpolator._evaluate_((x,y)) # is this correct ?

Like this:

	result = self.interpolator((x, y))

It should perhaps also allow the more obvious interpolator(x, y) syntax, 
but that part hasn't been done yet.

-- 
Pauli Virtanen




More information about the SciPy-User mailing list