public static void elementMultConjB ( InterleavedF64 a , InterleavedF64 b , InterleavedF64 output ) { for ( int y = 0 ; y < a . height ; y ++ ) { int index = a . startIndex + y * a . stride ; for ( int x = 0 ; x < a . width ; x ++ , index += 2 ) { double realA = a . data [ index ] ; double imgA = a . data [ index + 1 ] ; double realB = b . data [ index ] ; double imgB = b . data [ index + 1 ] ; output . data [ index ] = realA * realB + imgA * imgB ; output . data [ index + 1 ] = - realA * imgB + imgA * realB ; } } }
Element - wise multiplication of a and the complex conjugate of b