Open jecampagne opened 2 years ago
Well it might be that x,y with different size is not so well defined as fpi,j = f(x_i, y_j) does is means to run over all i at fixed j => n_i x n_j values or when ni=nj then fpi,i = f(x_i,y_i) only i: over n_i => n_i values
Well... the two use-cases can happen.
@jecampagne
xp
and yp
can have different size.
x_star
and y_star
should have same size, since point i
coordinate is (xstar[i], ystar[i])
!
If you want mesh semantic, you can use meshgrid and flatten output.
x_star = jnp.array([-0.5,0.1])
y_star = jnp.array([0.7,-0.7,0.0])
x_star, y_star = np.meshgrid(x_star, y_star)
x_star = x_star.reshape((-1,))
y_star = y_star.reshape((-1,))
Hum, sounds good :)
Hi, I have a crash if "x" and "y" have different sizes I got for instance
then