No, you can't, in 2.6 M*V will fail with a TypeError (which shouldn't
be there) and V*M will crash.

I've already got this fixed, I'm still working on this patch but I
hope it will be ready soon. It's almost done, but I just added a
couple more examples where things fail.

Gonzalo

On 6/21/07, Robert Bradshaw <[EMAIL PROTECTED]> wrote:
>
> Hmm... that is inconsistent and should maybe be changed. However,
> when using the underscore methods, it is the responsibility of the
> user to make sure that the inputs are of the right kind. One can do
> M*V and V*M just fine.
>
> On Jun 21, 2007, at 4:56 PM, Gonzalo Tornaria wrote:
>
> > Actually, the following looks to me a bit incoherent:
> >
> > sage: V=vector(ZZ[x],[1])
> > sage: M=matrix(QQ,1,1,[1])
> > sage: M._matrix_times_vector(V)
> > (1)
> > sage: M._vector_times_matrix(V)
> > *** glibc detected *** sage.bin: realloc(): invalid old size:
> > 0x00007ffff3cee3d0 ***
> >
> > I'll check what are the differences between _matrix_times_vector and
> > _vector_times_matrix.
> >
> > Gonzalo
> >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-devel
URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to