#15688: matrix*vector coercion
---------------------------------+------------------------
       Reporter:  barbules       |        Owner:
           Type:  PLEASE CHANGE  |       Status:  new
       Priority:  major          |    Milestone:  sage-6.1
      Component:  PLEASE CHANGE  |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------
Description changed by barbules:

Old description:

> In sage 5.8 the multiplication matrix*vector does not give the correct
> answer when the vector has to be coerced.
>
> Example:
>
> F=GF(3571)
> m=matrix(F,[1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1])
> w=vector(QQ,[89843/2, 555841/2, 754633/2, 211553, 152186, 286953, 70867,
> 109089, 156622, 341523, 319195, 109233, 277852, 232951, 244697, 325034,
> 295611])
> print m*w,m*w.change_ring(F)

New description:

 In sage 5.8 the multiplication matrix*vector does not give the correct
 answer when the vector has to be coerced.

 Example:

 F=GF(3571);

 m=matrix(F,[1, 1, 1, 1, 1, 1, 1, 1, -1, -1, -1, -1, -1, -1, -1, -1, -1]);

 w=vector(QQ,[89843/2, 555841/2, 754633/2, 211553, 152186, 286953, 70867,
 109089, 156622, 341523, 319195, 109233, 277852, 232951, 244697, 325034,
 295611]);

 print m*w,m*w.change_ring(F)

--

--
Ticket URL: <http://trac.sagemath.org/ticket/15688#comment:1>
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/groups/opt_out.

Reply via email to