Having two complex arrays of dimension 2 I want to calculate a point wise multiplication (Hadamard product):
complex(8) :: A(N,N), B(N,N), C(N,N)
...
do j = 1, N
do i = 1, N
C(i,j) = A(i,j)*B(i,j)
enddo
enddo
Is there any BLAS routine to optimize that or is this actually already the most efficient way to write the Hadamard product? Or does the compiler do the job for me in such a simple case?
I code in Fortran so the first index is the fast index.