Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Span<T> & Memory<T> on Fourier #880

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Span<T> & Memory<T> on Fourier #880

wants to merge 1 commit into from

Conversation

macaba
Copy link

@macaba macaba commented Nov 13, 2021

An example how an updated API might look (and naive fixing of unit tests).

Whilst doing this, I saw many opportunities for reducing memory allocations so this would probably be the subject of a 2nd pass through this.

@macaba
Copy link
Author

macaba commented Nov 13, 2021

Pain points:

The CommonParallel.For and Storage APIs are not Span compatible, hence the fallback to Memory and .ToArray(). Hopefully someone more familiar with Math.Net can weigh in here with possible solutions.

@cdrnet
Copy link
Member

cdrnet commented Nov 29, 2021

Thank you!

I really would like to move forward in this direction, and also have some thoughts already. I'll try to get back to you as soon as time permits!

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.

None yet

2 participants