Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend to 2d #15

Open
twangnh opened this issue Sep 25, 2022 · 2 comments
Open

extend to 2d #15

twangnh opened this issue Sep 25, 2022 · 2 comments

Comments

@twangnh
Copy link

twangnh commented Sep 25, 2022

hi @aliutkus thanks for sharing the wonderful work, I'm wondering how to extend the function to 2d points?

@aliutkus
Copy link
Owner

aliutkus commented Sep 25, 2022

Hi, thanks for your interest. Good question, yes I guess it's feasible, and requires some multidimensionnel generalization to searchsorted.
The common way is to use Delaunay triangulation. Both matlab and scipy have this. See for instance https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.LinearNDInterpolator.html#scipy.interpolate.LinearNDInterpolator
It would basically mean porting that code to torch...

@je-santos
Copy link

Did anyone ended-up working on this? Seems like a cool idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants