[Jprogramming] composite rank error
Raul Miller
rauldmiller at gmail.com
Wed Aug 12 14:41:29 UTC 2015
Oops, I overlooked that issue.
But of course, there is a way of giving rank to m - you just have to
change the expression (use gerund form of } which extracts m out as an
argument, for example).
--
Raul
On Wed, Aug 12, 2015 at 5:23 AM, Henry Rich <HenryHRich at nc.rr.com> wrote:
> (2#,:2 2 1)}"1 _
>
> } is an adverb.
>
> The verb here is the MONAD (2#,:2 2 1)} . You can give it a rank, but there
> will be only one rank (_ here, because "1 _ is equivalent to "_ 1 _).
>
> There is no way to have the rank apply to the m part of m} (Here, 2#,:2 2
> 1).
>
> Henry Rich
>
>
> On 8/12/2015 1:08 AM, David Lambert wrote:
>>
>> I don't understand this rank error, the only unsatisfying explanation I
>> think of is that amend works in place.
>>
>>
>> 2 2 1{"0 1 A NB. goal
>> 1.4 55 0.059
>>
>> 2#,:2 2 1
>> 2 2 1
>> 2 2 1
>>
>> (; $)@:|: A
>> +------------+---+
>> | 0 0 0.034|4 3|
>> | 1 25 0.059| |
>> |1.4 55 0.094| |
>> | 2 85 0| |
>> +------------+---+
>> 2 2 1}"1 _ |:A
>> 1.4 55 0.059
>>
>> (2#,:2 2 1)}"1 _ |:A
>> |rank error
>> | (2#,:2 2 1)}"1 _|:A
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list