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

Update translOp.m

parent fa2b5685
No related branches found
No related tags found
No related merge requests found
function [Tc1c2F] = translOp(F, sampling, c1, c2, kappa) function [Tc1c2F] = translOp(F, sampling, c1, c2, kappa)
% Applies generalized far field translation operator on F %% TRANSLOP: Applies generalized translation operator to a far field matrix F.
% INPUT: c1 - shift vector for row space, 2x1 array. %
% c2 - shift vector for column space, 2x1 array. % INPUT: F Far field matrix, nxhat*nd-array.
% kappa - wave number. % sampling Structure containing information about the discretization.
% F - farfield matrix. % c1 Determines translation in row direction, vector of length 2.
% sampling - structure that contains information about the % c2 Determines translation in column direction, vector of length 2.
% discretization. % kappa Wave number, >0.
% OUTPUT Tc1c2F - translated far field matrix. %
% OUTPUT: Tc1c2F Translated far field matrix, nxhat*nd-array.
xhat = sampling.xhat; %
d = sampling.d.'; % SYNTAX: translOp(F, sampling, c1, c2, kappa)
%
Tc1 = diag(exp(1i*kappa*[cos(xhat), sin(xhat)]*c1)); % **************************************************************************************
Tc2 = diag(exp(1i*kappa*[cos(d), sin(d)]*c2));
Tc1c2F = Tc1*F*Tc2'; xhat = sampling.xhat;
d = sampling.d.';
end
\ No newline at end of file Tc1 = diag(exp(1i*kappa*[cos(xhat), sin(xhat)]*c1));
Tc2 = diag(exp(1i*kappa*[cos(d), sin(d)]*c2));
Tc1c2F = Tc1*F*Tc2';
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment