#NEWLINE# def corrcoef( x , y ) : #NEWLINE# #INDENT# real = ct . c_double ( 0 ) #NEWLINE# imag = ct . c_double ( 0 ) #NEWLINE# safe_call ( backend . get ( ) . af_corrcoef ( ct . pointer ( real ) , ct . pointer ( imag ) , x . arr , y . arr ) ) #NEWLINE# real = real . value #NEWLINE# imag = imag . value #NEWLINE# return ( real if ( imag == 0 ) else ( real + ( imag * 1j ) ) )