Repository navigation
Conversation
|
Kia ora @sangwinc, This looks sensible to me! I had never considered what a basis for {0} would look like, so this seems like an oversight by me rather than a deliberate decision. I don't think this will break any of my questions (though obviously I can't speak for others). The only thing that made me pause was whether Perhaps we could follow a similar strategy to the one I employed in |
|
Hi Chris, The empty family should indeed be linearly independent and span the zero subspace, as long as it is empty family from the same vector space (if they're represented by matrices, column spaces of In general, I much prefer it when we have some general description, and corner cases follow it automatically... In our case, it would mean that empty matrices are taken proper care of by Maxima, which is unfortunately not the case yet, so we'd indeed need to do it on STACK level if we want to support them... Some details below. Maxima supportThe real space of objects we care about in linear algebra is
With dimensions preserved, the usual Currently, transposing I've submitted proposed fixes upstream: Until this is resolved, comprehensive support would require quite a few STACK workarounds. I'm not sure the practical benefit justifies maintaining those ourselves. Supporting an empty basis in these predicates seems useful, though. Related pre-existing issuesThese occur both before and after this PR:
Suggestions for this PR
I wouldn't make fixing all of this a prerequisite for the PR. Longer term, though, I'd prefer one conversion interface that preserves dimensions and distinguishes invalid input from a valid empty family, so the usual rank algorithms work without separate exceptions in every caller. |
|
Thanks @adamant-pwn and @LukeLongworth for your speedy comments. I'll merge in this minor improvement, and the support for n*0 matrices, etc, can follow in due course. |
No description provided.