logical equality selection with direct access to double arrays