arbitrary matrix concatenation

Tyler Nitsch's icon

I'm trying to figure out an elegant way to make matrix foo { 1 2 3} = { 1 2 3 1 2 3 1 2 3 1} or { 1 2 3 1 2} or { 1 2 3 1 2 3 1 2} ect.. basically a recursive matrix concatenation that repeats the original matrix across a specified dimension until it reaches an arbitrary size of x without having to do fancy scripting. Anybody have some useful suggestions?

vade's icon

jit.scanwrap?

On May 4, 2007, at 6:52 PM, Tyler Nitsch wrote:

> I'm trying to figure out an elegant way to make matrix foo { 1 2 3}
> = { 1 2 3 1 2 3 1 2 3 1} or { 1 2 3 1 2} or { 1 2 3 1 2 3 1 2}
> ect.. basically a recursive matrix concatenation that repeats the
> original matrix across a specified dimension until it reaches an
> arbitrary size of x without having to do fancy scripting. Anybody
> have some useful suggestions?

v a d e //

www.vade.info
abstrakt.vade.info