1 | initial version |
Attention, pitfall:
a = b = vector(QQ,2)
is NOT a shortform of
a = vector(QQ,2)
b = vector(QQ,2)
The first creates exactly one vector object, a an b refer to the same object. The second creates two independent objects, a and b refer to different objects.
print a == b, a is b
shows the difference.