Loïc Grenié on Sun, 04 Oct 2015 08:32:50 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: multiplication of 2 one by one matrices


On 2015-10-04 at 3:53 GMT+02:00 Chris De Corte wrote:
Hi,

I try to multiply to 1x1 matrices but get an error:

? [1]*[1]

  ***   at top-level: [1]*[1]
  ***                    ^----
  *** _*_: forbidden multiplication t_VEC * t_VEC.

    [1] is a vector, not a matrix. If you want a matrix, you have to force it:

? Mat([1])*Mat([1])
 %1 =
[1]

? type(%)
%2 = "t_MAT"

        Loïc