You can perform an array operation on selected elements by using masked array assignment. For more information, see WHERE.