-
Notifications
You must be signed in to change notification settings - Fork 72
Closed
Description
It seems that vfilter
, vmap
, etc can't handle multiple conditions?
x = rand(10)
cond(a) = ((a > 0.25) && (a < 0.75))
vfilter(cond,x) # ERROR: TypeError: non-boolean (VectorizationBase.Mask{4, UInt8}) used in boolean context
filter(cond,x) # this works
vmap(cond,x) # ERROR: TypeError: non-boolean (VectorizationBase.Mask{4, UInt8}) used in boolean context
map(cond,x) # this works
Thanks
Metadata
Metadata
Assignees
Labels
No labels