How do I determine the position of rows whose entries all satisfy some condition (e.g., all elements of the row are positive)? I've found out how to use Select to extract the correct rows, but I haven't been able to find out how to use Position to do the equivalent.
A = {{-1, 2, 3}, {4, 5, 6}, {-7, 8, 9}}
Select[A, And @@ Thread[# > 0] &]
gives
{{4, 5, 6}}
but I want to know the position of that row (i.e. {2}).
Position[And @@ Thread[# > 0] & /@ A, True]? – kglr Feb 04 '15 at 22:54