Julia Programming Language
Using BitArray to index into another Array
New to Julia
indexing
Tamas_Papp
July 17, 2020, 6:14am
2
ids
is a matrix, not a vector. Maybe you are looking for something like
C = B[vec(ids), :]
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Indexed assignment with logical indices: subarray.jl error
New to Julia
indexing
3
365
July 1, 2022
Some bit manipulations
New to Julia
2
668
May 17, 2017
Index array using boolean result of a comparison
General Usage
first-steps
6
2743
September 4, 2017
BoundsError when trying to index certain dimensions of an array with a vector containing indices
General Usage
question
,
indexing
3
2486
August 7, 2021
Is there a destructive version of logical indexing?
New to Julia
2
462
April 12, 2020