Skip to content

Added allocation-free correlation#39

Open
djohn134 wants to merge 2 commits intobionanoimaging:mainfrom
djohn134:main
Open

Added allocation-free correlation#39
djohn134 wants to merge 2 commits intobionanoimaging:mainfrom
djohn134:main

Conversation

@djohn134
Copy link

@djohn134 djohn134 commented Nov 4, 2023

Updated src/correlations.jl to include correlation plans and allocation-free correlations using buffers, similar to what was already present for convolutions in src/convolutions.jl

end

function p_ccorr_aux(P, P_inv, u, v_ft)
return (P_inv.p * ((P * u) .* conj(v_ft) .* P_inv.scale))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use conj.(v_ft). That should avoid some allocations.

@roflmaostc
Copy link
Member

Thanks for adding this.

We need to do a couple of things before we can merge :)

  • some tests to verify the implementation, see how we test conv and similar ones
  • docstrings similar to conv-

@RainerHeintzmann
Copy link
Member

@djohn134 are you still planning to merge your suggestions. It sounds like a good idea, but I agree with @roflmaostc that tests and docstrings would be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants