chain-able
chain-able copied to clipboard
finish loops folder, use functions-as-methods on traverse
- [ ] so they can be optimized easier externally when used as functions
- [ ] so it can provide a fluent interface for the iterating, reducing the different iterators required for different apis
- [ ] so it can add compatible api methods for mappers when using with existing libs such as ramda & lodash
Hey @nikhil-vorticity Sorry for the late reply!
Yes it would indeed be nice having such a function.
The best way to proceed is certainly from a duplicate of CoalescedBlockMatrixSkel::densify
in baspacho/baspacho/CoalescedBlockMatrix.cpp
. Basically we already have such a function (allowing to return the factor data either before/after factorization), but it only allows you to get the data as a filled dense matrix.
You can certainly modify it to add the written blocks to a sparse matrix, I don't have much time to do this myself but will be very happy to merge a diff adding this!
Best regards, Maurizio