Commit efa6476f authored by alexander.dornheim's avatar alexander.dornheim
Browse files

Fixed various syntactic errors in CDP_processor

parent 00ffb110
......@@ -46,9 +46,8 @@ def CDP_processor(config):
A = lambda I: fft(conj(Masks) * tile(I,[L, 1])) # Input is 1 x n signal, output is L x n array
At = lambda Y: mean(Masks * ifft(Y), 0) # Input is L x n array, output is 1 x n signal
else:
A = lambda I: fft2(config['Masks'] * reshape(tile(I,[1 L]), (I.shape[0]I.shape[1], L)) # Input is n1 x n2 image, output is n1 x n2 x L array
A = lambda I: fft2(config['Masks'] * reshape(tile(I,[1, L]), (I.shape[0],I.shape[1], L))) # Input is n1 x n2 image, output is n1 x n2 x L array
At = lambda Y: mean(Masks * ifft2(Y), 2) # Input is n1 x n2 X L array, output is n1 x n2 image
end
# Data
Y = abs(A(x))
......@@ -81,6 +80,6 @@ def CDP_processor(config):
Relerrs = norm(x - exp(-1j*angle(trace(x.T*z))) * z, 'fro')/norm(x,'fro')
config['u_0']=reshape(tile(z,[1, L]), (z.shape[0], z.shape[1], L))
print('Run time of initialization: %.2f seconds', toc-tic)
print('Relative error after initialization: %.2f', Relerrs)
print('\n')
\ No newline at end of file
print('Run time of initialization: %.2f seconds', toc-tic)
print('Relative error after initialization: %.2f', Relerrs)
print('\n')
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment