In this blog we will review the benefit of using element-wise operations for your computations. Element-wise operations are operations that are applied to every element in an array. If the operation is on two elements, these elements are located in the same place in their respective arrays. The simplest example of an element-wise operation is the addition (+) operation.
<pre>array A=array(1024,1024), B=array(1024,1024), C=array(1024,1024);
C=A+B;
</pre>
An element-wise operator that is applied to a single element is unary operator. An operator that works on two elements is a binary operator. ArrayFire has implemented a large number element-wise operations that are applied to the elements of an array. These operators can help reduce the programming overhead for an application designer as:
<ul>
	<li>Productivity - the application need not worry about implementing the operator.</li>
	<li>Portability - as these are implemented in OpenCL, the programmer does not have deal with the partitioning of the work and load-balancing. These are key components for performance.</li>
	<li>Readability and maintenance - simplifies going over code.</li>
	<li>Completeness - the <pre>array</pre> data type is no different than any other C scalar data type.</li>
</ul>
&nbsp;

&nbsp;