Skip to content

Is there a way to return the query given a index matrix? #1381

Answered by Ralith
MarshalLeeeeee asked this question in Q&A
Discussion options

You must be logged in to vote

You want Matrix::zip_map, with something like I.zip_map(&J, |x, y| M[(x, y)]).

Replies: 1 comment 3 replies

Comment options

Andlon
Apr 10, 2024
Maintainer Sponsor

You must be logged in to vote
3 replies
@MarshalLeeeeee
Comment options

@Ralith
Comment options

Answer selected by MarshalLeeeeee
@MarshalLeeeeee
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants