#18310: Finite dimensional modules with basis: improved conversions to vectors
and
matrices
-------------------------------------+-------------------------------------
Reporter: nthiery | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.7
Component: linear algebra | Resolution:
Keywords: | Merged in:
Authors: Nicolas M. ThiƩry | Reviewers: Travis Scrimshaw
Report Upstream: N/A | Work issues:
Branch: | Commit:
public/categories/fin_dim_modules_with_basis_vector_matrix-18310|
035418cccaab72f73565c50d3e5b6391d294a467
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by nthiery):
Replying to [comment:13 jdemeyer]:
> Answering my own question: for normal free modules, it seems that
`matrix()` just returns `basis_matrix()`. That's an annoying
inconsistency. I actually see no reason to have this `matrix()` alias for
`basis_matrix()`.
>
> Proposal: define `matrix(*args, **kwds)` in free modules which calls
`basis_matrix()` if no arguments are given (this should be deprecated) and
calls the modified(*) categories implementation if any argument is
supplied.
+1.
Do you agree that this should go in #10672 rather than here? It would
be weird to have matrix call a method that is not yet available from
the categories. As a first step, we could just deprecate
`FreeModule.matrix` for now. What do you think?
> (*) The `base_ring` of the resulting matrix should be the
`coordinate_ring`, not the `base_ring` of the free module.
Gasp, another inconsistency: most other modules in Sage (polynomial
rings, matrix space, ...) don't define coordinate_ring: there it's
assumed that the coefficients of elements live in `base_ring`. Ok,
clarifying this is for #10672 since it's not about this specific
method, but about all uses of `base_ring`.
Thanks for the thoughts
Cheers,
Nicolas
--
Ticket URL: <http://trac.sagemath.org/ticket/18310#comment:17>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.