Skip to main content
7 events
when toggle format what by license comment
Mar 27, 2019 at 15:04 comment added DrMrstheMonarch ah, signs are reversed, missed that part. I updated the code to reflect questioners exact question.
Mar 27, 2019 at 15:04 comment added Roman Yes @BobHanlon . In order to invert his solution to what the OP wants you have to either Not@AnyTrue[data,Negative] or (simpler) AllTrue[data,Positive] or AllTrue[data,NonNegative].
Mar 27, 2019 at 15:03 history edited DrMrstheMonarch CC BY-SA 4.0
added not
Mar 27, 2019 at 15:00 comment added Bob Hanlon @Roman - the poster is using AnyTrue not AllTrue
Mar 27, 2019 at 14:55 comment added Roman AllTrue[data, Positive] to get the sign right. Or use Not on your solution.
Mar 27, 2019 at 14:54 history edited Roman CC BY-SA 4.0
added 114 characters in body; deleted 118 characters in body
Mar 27, 2019 at 14:29 history answered DrMrstheMonarch CC BY-SA 4.0