Skip to content
Advertisement

Tag: where-clause

mask and apply numpy where function to a vector in c++

I’m using C++ and want to combine the masking of a vector and the search for the indexes where a condition is verified, similarly to the numpy where function. Here’s an example: After using masked should look like this: masked = {62, 62, 70, 65} Afterwards, I want to find the indexes where id vector elements are greater than masked

Advertisement