Apply a unary callback to elements in a strided input array according to elements in a strided mask array and assign results to elements in a strided output array.