Re: [Jprogramming] Different result of mean for row and column vectors

2020-04-16 Thread Raul Miller
That said, note that +/"1 does "lose" the last dimension. Thanks, -- Raul On Thu, Apr 16, 2020 at 5:30 PM Mike Powell wrote: > > Of course. (A place where J and APL differ.) > Thanks Jan-Pieter. > > Mike > > > On Apr 16, 2020, at 12:00, Jan-Pieter Jacobs > > wrote: > > > > Actually, the dime

[Jprogramming] Jd release 4.29

2020-04-16 Thread Eric Iverson
Jd release 4.29 available: https://code.jsoftware.com/wiki/Jd/Release -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Different result of mean for row and column vectors

2020-04-16 Thread Mike Powell
Of course. (A place where J and APL differ.) Thanks Jan-Pieter. Mike > On Apr 16, 2020, at 12:00, Jan-Pieter Jacobs > wrote: > > Actually, the dimension lost is the first, as insert [0] (u/) inserts u > between the items [1]. > > Demonstration: > > $ foo =: i. 2 3 4 > 2 3 4 > $ +/ foo >

Re: [Jprogramming] Different result of mean for row and column vectors

2020-04-16 Thread Jan-Pieter Jacobs
Actually, the dimension lost is the first, as insert [0] (u/) inserts u between the items [1]. Demonstration: $ foo =: i. 2 3 4 2 3 4 $ +/ foo 3 4 [0]: https://code.jsoftware.com/wiki/Vocabulary/slash [1]: https://code.jsoftware.com/wiki/Vocabulary/AET#Item Cheers, Jan-Pieter Op wo 15 a

Re: [Jprogramming] Different result of mean for row and column vectors

2020-04-16 Thread Thomas Bulka
Am 15.04.2020 20:54 schrieb Mike Powell: Thomas, I J there is not really anything for a column vector. If an object, like your rvec, has a single dimension it’s a vector. If it has two dimensions, as does cvec, it’s a matrix. That’s different from most conventional mathematical notation. When y