Skip to content
Snippets Groups Projects
Commit e379257c authored by Lisa Schätzle's avatar Lisa Schätzle
Browse files

Update projOp.m

parent e02176db
No related branches found
No related tags found
No related merge requests found
function [F] = projOp(F, sampling, kappa, c1, c2, N1, N2) function [Ft] = projOp(F, sampling, kappa, c1, c2, N1, N2)
% Projection of F onto the subspace $T_{c_1,c_2}^\astV_{N_1,N_2}$
% c_1 indicates shift in row direction, c_2 in column direction % Simulates projection operator on generalized subspace of non-evanescent far field operators.
% N_1 is cutting parameter in row direction, N_2 in column direction % Projects of F onto the subspace $T_{c_1,c_2}^\astV_{N_1,N_2}$.
%
F = translOp(F, sampling, c1, c2, kappa); % shift the origin % INPUT: F Far field matrix, nxhat*nd-array.
% sampling Structure containing information about the discretization.
Ffft = fft2(F); % kappa Wave number, >0.
% Ffft = fft(F.'); % columnwise 1D FT % c1 Determines translation in row direction, vector of length 2.
% c2 Determines translation in column direction, vector of length 2.
Ffft(:,(N1+2) : (end-N1)) = 0; % N1 Cutting index in row direction, natural number.
Ffft((N2+2) : (end-N2),:) = 0; % N2 Cutting index in column direction, natural number.
% OUTPUT: Fp Projected far field matrix, nxhat*nd-array.
F = ifft2(Ffft); %
% F = ifft(Ffft).'; % columnwise 1d IFT % *********************************************************************************************
F = translOp(F, sampling, -c1, -c2, kappa); % shift back the origin F = translOp(F, sampling, c1, c2, kappa); % shift the origin
end Ffft = fft2(F);
\ No newline at end of file
Ffft(:,(N1+2) : (end-N1)) = 0;
Ffft((N2+2) : (end-N2),:) = 0;
F = ifft2(Ffft);
Fp = translOp(F, sampling, -c1, -c2, kappa); % shift back the origin
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment