building matrices/vectors recursively
asked 2016-12-07 17:57:05 -0500
This post is a wiki. Anyone with karma >750 is welcome to improve it.
Suppose that a is a vector, s is a scalar and I am trying to build (say) b=[a; a*s] (a vector twice as long as a).
How do I accomplish this with sage? the default behavior will be for b to be a vector with 2 entries, each of which is a vector. But what I wanted is a vector that is effectively twice as long as a.