ExtendableSparse.jl icon indicating copy to clipboard operation
ExtendableSparse.jl copied to clipboard

Dynamic Matrix Size

Open cortner opened this issue 5 years ago • 3 comments

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?

cortner avatar May 03 '20 18:05 cortner

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 ?

j-fu avatar May 03 '20 20:05 j-fu

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 :)

cortner avatar May 04 '20 01:05 cortner

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

j-fu avatar May 31 '23 12:05 j-fu