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

Dynamic Matrix Size #5

Open
cortner opened this issue May 3, 2020 · 3 comments
Open

Dynamic Matrix Size #5

cortner opened this issue May 3, 2020 · 3 comments

Comments

@cortner
Copy link

cortner commented May 3, 2020

I occasionally don't know how large the final matrix is before I have completed assembly. Is this a setting that ExtendableSparse could support, or is there a strong reason to keep the matrix size predetermined and fixed?

@j-fu
Copy link
Member

j-fu commented May 3, 2020

No, currently, this is not the case.

... but it appears to be doable after modest restructuring. Can only allow myself to think about it after
some other homework done, maybe after midweek...

I also have plans for a thread-safe variant, this may involve a similar question to be addressed.

What is the application case if you can tell ?

@cortner
Copy link
Author

cortner commented May 4, 2020

If it’s too much work then maybe not worth it.

Two situations that come to mind are

  • assembling a LLSQ System when you don’t know beforehand what the dimensionality if individual observations is
  • when a loop over a basis is given by an iterator which doesn’t know its own length a priori

Three :

  • laziness :)

@j-fu
Copy link
Member

j-fu commented May 31, 2023

... finally got to work on multithreading, and indeed, dynamic sizing will be doable.

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

No branches or pull requests

2 participants