> Date: Tue, 22 Aug 2000 10:25:55 +0200 > Reply-to: [log in to unmask] > Hello, > > For some filtering of matrices I need to act on the real and the > imaginary part seperately (the filter is real). For now, I > copy the real (and imaginary) part into a temporary matrix, and > act on these like: > temp(1:N,1:N) = real(mat(1:N,1:N) > call filter(filtercoefs, temp) > erg(1:N,1:N) = temp(1:N,1:N) > > temp(1:N,1:N) = real(mat(1:N,1:N) > call filter(filtercoefs, temp) > erg(1:N,1:N) = erg(1:N,1:N) + cmplx(0.0, temp(1:N,1:N)) Have you considered duplicaing the filter to work on the real and the imaginary parts? > thanks > juergen %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%