-
Notifications
You must be signed in to change notification settings - Fork 41
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
Butterfly matrix compress with blocks of elements? #121
Comments
@pghysels any thought on this? I thought we already have it in strumpack sparse matrix interface, but maybe not yet for the dense interface? |
Apologies for the delay, yes it is supported: STRUMPACK/src/HODLR/ButterflyMatrix.hpp Line 124 in d64fa98
STRUMPACK/src/HODLR/HODLRMatrix.hpp Line 97 in d64fa98
you can ignore the ExtractionMeta argument.
|
Ah gotcha! I guess that it isn't implemented in the structured interface (that I had been using), but is in the ButterflyMatrix class directly? I'll switch to using the ButterflyMatrix class. Thanks guys! |
Hmm. When I try to build a butterfly matrix using the structured interface and block extraction, I get a std::logic_error "Not implemented yet". The same code works fine with element-by-element extraction. For reference, my matrix is a complex, with non-square shape. If the situation isn't immediately apparent, I can put together some reproducer code. Thanks! |
Yes, please post some example code for the ease of diagnosis.
…On Wed, Jul 3, 2024 at 8:53 AM mdschroer ***@***.***> wrote:
Hmm. When I try to build a butterfly matrix using the structured interface
and block extraction, I get a std::logic_error "Not implemented yet".
For reference, my matrix is a complex, with non-square shape.
If the situation isn't immediately apparent, I can put together some
reproducer code.
Thanks!
—
Reply to this email directly, view it on GitHub
<#121 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABT6SCRWJPC5RXGWZTDURO3ZKQM7JAVCNFSM6AAAAABJ2RPKRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBWGY2TINBWHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
--
Yang Liu
Research Scientist
Lawrence Berkeley National Laboratory
|
It looks like that exception is coming from STRUMPACK/src/structured/StructuredMatrix.cpp Line 951 in d64fa98
The functionality should be there for ButterflyMatrix (including complex and non-square), but just not added to the StructuredMatrix interface. I don't have time to do that this week. I'll try next week. You could try the class ButterflyMatrix directly: STRUMPACK/src/HODLR/ButterflyMatrix.hpp Line 123 in d64fa98
|
Is building a butterfly matrix from blocks of elements supported? It looks like it is supported by ButterflyPACK, but as best as I can tell it hasn't yet been implemented in the STRUMPACK wrapper.
I can save a little bit of calculations with my kernel by computing a block at a time, as opposed to element by element. Do you expect the butterfly construct_from_elements to support block-by-block construction in the future?
Thanks!
The text was updated successfully, but these errors were encountered: