Add or subtract on pq grid using matching dimel and scalar-dimension
authorLiam M. Healy <lhealy@common-lisp.net>
Sat, 8 Oct 2011 22:25:09 +0000 (18:25 -0400)
committerLiam M. Healy <lhealy@common-lisp.net>
Sat, 8 Oct 2011 22:25:09 +0000 (18:25 -0400)
commit96feef767671ae92fe767b025136c9c1c985f9ec
treeb3e346395c6000b39470c0d6e61973b8387d327f
parentc6c205a9ce38e25a1d51cbb6a82cc837dc824eeb
Add or subtract on pq grid using matching dimel and scalar-dimension

Addition and subtraction on pq grid makes a result with consistent
scalar-dimension and dimel slots, thanks to a second return value from
dimel-or-not and therefore equal-dimension.  Also, a more refined
check on make-pq-object if #+debug holds, so that trying to make a pq
with a scalar dimel and scalar-dimension nil will give an (incorrectly
labeled) error.
physical-quantities/arithmetic.lisp
physical-quantities/physical-quantities.lisp
physical-quantities/scalar.lisp