Re: [Jprogramming] Request for comments: multiple assignment

2017-07-12 Thread Don Guinn
I think that it follows the rules of "items". The list of names to the left are considered items and matched with the items on the right of the copula. On Wed, Jul 12, 2017 at 6:11 PM, Jose Mario Quintana < jose.mario.quint...@gmail.com> wrote: > Sure, there are different ways to perform a task,

[Jprogramming] Covariance / Correlation matrix

2017-07-12 Thread Ric Sherlock
The current verbs for calculating covariance and correlation in the stats/base/multivariate.ijs script, are dyadic and designed to calculate the cov/corr between 2 variables e.g. load 'stats' X=: 1 1 1 1 2 2 2 2 3 3 3 3 Y=: 1 2 2 3 5 5 6 7 10 11 11 12 Z=: 1 1 2 2 4 6 5 4 8 7 9 10 X cov Y

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-12 Thread Jose Mario Quintana
Sure, there are different ways to perform a task, for example, 2&* 1 2 3 2 4 6 +: 1 2 3 2 4 6 What do you mean by "the rest of that"? On Wed, Jul 12, 2017 at 7:40 PM, Raul Miller wrote: > All [1] needed was > > add=:4 :0 > ((0{::y),'__x')=: ".1{::y > ) > > But I don't really follow t

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-12 Thread Raul Miller
All [1] needed was add=:4 :0 ((0{::y),'__x')=: ".1{::y ) But I don't really follow the rest of that. Thanks, -- Raul On Wed, Jul 12, 2017 at 7:14 PM, Jose Mario Quintana wrote: > The assignments are a consequence of J's agreement; see [0] for example. > If one wants the effect of 'a b c'

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-12 Thread Jose Mario Quintana
The assignments are a consequence of J's agreement; see [0] for example. If one wants the effect of 'a b c' =:i.3 4 5 using the verb is (or a similar verb) then one can use 'a b c' is i.3 4 5 :) How is 'abc' is"0 i.3 4 5 useful? I do not know... Who knows? How is the verb is (or a simi

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-12 Thread Don Kelly
How is "is" more useful than from x=: y what is interesting is that 'abc' is "0 i.3 4 5 displays the i.3 4 5 array but the value of abc appears as : although a, b, c correspond to (<0 1 2; 3; 4){i. 3 4 5 19 39 59 In the use of "is" in this case it appears that it whereas 'abc' =: i. 3

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-12 Thread Raul Miller
No, I am asking *how* it is useful. Thanks, -- Raul On Wed, Jul 12, 2017 at 2:08 PM, Jose Mario Quintana wrote: > Maybe I am misunderstanding... Are you trying to imply that one cannot > find a verb such as is=: 4 :'(x)=:y' useful? > > > On Tue, Jul 11, 2017 at 8:37 PM, Raul Miller wrote:

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-12 Thread Jose Mario Quintana
Maybe I am misunderstanding... Are you trying to imply that one cannot find a verb such as is=: 4 :'(x)=:y' useful? On Tue, Jul 11, 2017 at 8:37 PM, Raul Miller wrote: > Ok, so, just to be clear - this has nothing to do with default assignment? > > That said, it's probably intentional that t