Matrix times zero vector isn't zero vector?



I don't believe there's any built-in way to handle cases like this, nor to
declare the shape of a non-scalar variable.

           -s


On Wed, May 1, 2013 at 2:43 PM, Henry Baker <hbaker1 at pipeline.com> wrote:

> Is there any way to simply indicate the 'shape' of A, so that
> A.transpose([0,0])=transpose([0,0]) ?
>
> ---
> Maxima 5.28.0-2 http://maxima.sourceforge.net
> using Lisp GNU Common Lisp (GCL) GCL 2.6.8 (a.k.a. GCL)
> Distributed under the GNU Public License. See the file COPYING.
> Dedicated to the memory of William Schelter.
> The function bug_report() provides bug reporting information.
> (%i1) x:transpose([0,0]);
>                                      [ 0 ]
> (%o1)                                [   ]
>                                      [ 0 ]
> (%i2) A.x;
>                                        [ 0 ]
> (%o2)                              A . [   ]
>                                        [ 0 ]
> (%i3)
>
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima
>