I wasn't thinking. A isn't a scalar. I even knew it had shape 1 1 .
A
4
$A
1 1
$3 2
2
2$A
4
4
3 2 + ,2$A
7 6
This works! Thanks.
Linda
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of km
Sent: Saturday, September 01, 2012 6:10 PM
To: [email protected]
Subject: Re: [Jprogramming] Scalar to Vector - Yet again
,4 is a vector
Sent from my iPad
On Sep 1, 2012, at 4:56 PM, "Linda Alvord" <[email protected]> wrote:
> I vow to remember how to do this, and several months later I forget
> and can't find it
>
> anywhere. Is there some way to get to the example from the vocabulary
page?
> Maybe I can remember that.
>
>
>
> A=:1 1$4
>
> 3 2 + A
>
> |length error
> | 3 2 +A
>
>
>
> Thanks.
>
>
>
> Linda
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm