by aleph0 <apl68000@[EMAIL PROTECTED]
>
Dec 17, 2007 at 09:22 AM
Try ...
20/[1],[.1]VEC
This will replicate the first dimension 20 times to give you RHO = 20
100
20/,[1.1]VEC
This will replicate the second dimension 20 times to give you RHO =
100 20
On Dec 17, 5:53 pm, Lance <Lanc...@[EMAIL PROTECTED]
> wrote:
> Say you have a 100 element vector. You want to take that vector and
> duplicate it, say 20 times such that you get a 100 20 matrix where all
> 20 columns are identical. I know that you can just do:
>
> {transpose}20 100{rho}vector.
>
> I'm looking for other ways to accomplish the same thing in APL. Can
> you use an outer product or some other form of assignment?
>
> Thanks,
> Lance