NumSharp icon indicating copy to clipboard operation
NumSharp copied to clipboard

Index of element with a condiction

Open EnricoBeltramo opened this issue 4 years ago • 0 comments

I'm implementing a filter on array. In python it works well, but if I try to replicate in numsharp, doesn't:

var threshold = 0.01 var filter1 = XYZ1[2, Slice.All] < -threshold; var XYZ_1_filter = XYZ1[Slice.All, filter1]; var XYZ_2_filter = XYZ2[Slice.All, filter1];

In particular way, filter1 return null. How can I do? In general, how i can find indexes that respect a particular condiction (i.e. greater than, minor than) in numsharp?

EnricoBeltramo avatar Sep 11 '20 05:09 EnricoBeltramo