#10793: Matrices can be "constructed" from matrices of wrong dimensions
------------------------------+---------------------------------------------
Reporter: vbraun | Owner: jason, was
Type: defect | Status: new
Priority: critical | Milestone: sage-4.6.2
Component: linear algebra | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
------------------------------+---------------------------------------------
Comment(by novoselt):
Replying to [comment:2 jason]:
> So it seems that the problem here is that in converting to an element of
the matrix space, it views the entries of the matrix (or indeed, the
entries of a nested list as well) as a flattened list:
>
> {{{
> sage: M
> Full MatrixSpace of 3 by 2 dense matrices over Integer Ring
> sage: M([[1,2,3],[4,5,6]])
> [1 2]
> [3 4]
> [5 6]
> }}}
>
> So I guess you're saying that MatrixSpace shouldn't flatten the list,
but instead should throw an error?
Absolutely! I see no reason why such flattening can make sense, so even if
there some - I think they should do it explicitly.
I find it a bit confusing that Sage uses right matrix action, so in the
description I tend to think that `projection` itself is the matrix of the
morphism, not its transpose. I suspect I am not the only one who can fall
into this trap: it is accepted as an input, but some other not-very-
related matrix is then used in the morphism.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10793#comment:4>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.