I have a matrix of logicals (
FALSE) and I need to count the number of rows that contain only
My current algorithm:
- initialize counter
- reduce each
+(take the sum of all the values in that row)
- if the result from 1. == the number of total columns, increment counter.
Is there a different (hopefully more efficient) routine I could apply?