Is there a way to return the query given a index matrix? #1381
Answered
by
Ralith
MarshalLeeeeee
asked this question in
Q&A
-
I am doing a simulation project with the case of advection of the grid-based density field given the velocity. One common way is to perform an inverse advection, and to interpolate densities around. This algorithm basically performs something like below on every grid, where (i,j) is the index of the grid.
So I'm wondering if there is an api
|
Beta Was this translation helpful? Give feedback.
Answered by
Ralith
Apr 24, 2024
Replies: 1 comment 3 replies
-
Hi there. I don't understand your question - what are |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You want
Matrix::zip_map
, with something likeI.zip_map(&J, |x, y| M[(x, y)])
.