In package vect, declare grad and "~" as nonscalar,
commitc6110df062b5e4bdf5906981095b04a66c1cdd1e
authorRobert Dodier <robert_dodier@users.sourceforge.net>
Thu, 6 Jan 2022 08:04:52 +0000 (6 00:04 -0800)
committerRobert Dodier <robert_dodier@users.sourceforge.net>
Thu, 6 Jan 2022 08:05:07 +0000 (6 00:05 -0800)
treec5107f3f60034aba5e07c446a2f1c752441d36ec
parentbc4d6f19e9b758aa61d1d6544e644342f7b193e9
In package vect, declare grad and "~" as nonscalar,
which inhibits elementwise addition with lists.

Also, in vectorsimp, apply a rule to implement commutativity for ".",
which represents the scalar product in vect.
This commutativity rule fixes a test case which fails
when grad is declared nonscalar.

Fixes bug reported to mailing list 2022-01-04: "Bad vect package?"
share/vector/rtest_vect.mac
share/vector/vect.mac