strand foo (real a) {
output real bar = 0;
update {
vec2 vv = [a,2*a];
tensor[2,2] mm = [vv,2*vv];
// BUG: printing a tensor valued expression should give you something that
// can be copy-pasted back in as a tensor-value (replace "<>" with "[]")
print(vv, "\n");
// BUG: printing tensor[2,2] doesn't work
print(mm, "\n");
stabilize;
}
}
initially {foo(i) | i in 1..1};