Zulip Chat Archive

Stream: Is there code for X?

Topic: Putting together two basis


Andy Heald (Apr 21 2024 at 04:12):

Maybe I'm taking the exact wrong approach for what I'm trying to do, but is there a way to append the bases of two disjoint submodules?

Like, I have a nice basis for U, and a nice basis for W and the intersection of U and W is trivial and I want a basis for U + W that's just the union of the two original bases.

Kevin Buzzard (Apr 21 2024 at 08:37):

Can you write a #mwe ?

Eric Wieser (Apr 21 2024 at 10:00):

@loogle Submodule, Basis, Disjoint

loogle (Apr 21 2024 at 10:00):

:search: NumberField.mixedEmbedding.disjoint_span_commMap_ker

Eric Wieser (Apr 21 2024 at 10:04):

Probably docs#Basis.prod is the answer, though you'll need a conversion between disjoint supremums and direct sums that I can't find

Edward van de Meent (Apr 21 2024 at 20:20):

docs#Submodule.span_union seems useful


Last updated: May 02 2025 at 03:31 UTC