Re: [Jprogramming] Advent of Code Day 24

2022-01-14 Thread 'Mike Day' via Programming
I’ve just got going on this after throwing in the towel on 23.2, though I haven’t yet persuaded myself to crib your post on that one! It’s one of those days where Dyalog APL’s direct definitions, where alpha and omega are the default arguments, would have saved renaming the registers to upper

Re: [Jprogramming] Advent of Code Day 24

2022-01-14 Thread Raul Miller
On Fri, Jan 14, 2022 at 4:15 AM 'Mike Day' via Programming wrote: > My data has, of course, 14 inp ops; to my surprise these were ops 0 > 18 36 ... Tabulating the data as 14 boxes of 18 ops, the ops and > first arguments were identical in each box; I think this applies to > all those second argum

Re: [Jprogramming] Advent of Code Day 24

2022-01-14 Thread 'Michael Day' via Programming
We haven't seen part 2 yet,  of course... there could be another sting in the tail, judging by the number of part 2 finishers in the stats! Mike On 14/01/2022 14:01, Raul Miller wrote: On Fri, Jan 14, 2022 at 4:15 AM 'Mike Day' via Programming wrote: My data has, of course, 14 inp ops; to my

Re: [Jprogramming] Advent of Code Day 24

2022-01-14 Thread 'Michael Day' via Programming
Apologies to Eugene Nonko - I'd overlooked your remarks about the great similarity between the 14 segments.  Plagiarism rules! Mike On 13/01/2022 23:34, Eugene Nonko wrote: I did solve it, but I didn't use J for that one. I wrote a translator in Perl that converted their assembly into C. C, b

[Jprogramming] debian package

2022-01-14 Thread Raoul Schorer
Hi, I noticed that j903 doesn't come as a Debian package (yet). The wiki link is dead. Is it in the works, or are debian users now advised to use the .zip? Best, Raoul -- For information about J forums see http://www.jsoftware.co

Re: [Jprogramming] debian package

2022-01-14 Thread Hauke Rehr
I’m on a Debian based system and I can’t remember having installed J using a package manager, ever. [though maybe that’s only my bad memory] If there is a package, however, I’d prefer that. Am 14.01.22 um 15:24 schrieb Raoul Schorer: Hi, I noticed that j903 doesn't come as a Debian package (ye

Re: [Jprogramming] Advent of Code Day 24

2022-01-14 Thread Raul Miller
Eugene is way ahead of us here -- and I think his observation was not so much specifically about this structural issue but instead a consequence of this issue. Subtle distinction, perhaps... -- Raul On Fri, Jan 14, 2022 at 9:20 AM 'Michael Day' via Programming wrote: > > Apologies to Eugene No

Re: [Jprogramming] debian package

2022-01-14 Thread bill lam
You can first install j903 into your home folder first and then cd to the j903 folder. And execute $ sudo bin/install-usr.sh will copy j to folders to /usr This shell scrpt shoudl work on both debian and redhat derivatives. Then j can run from anywhere $ ijconsole NOT jconsole > On 14 J

Re: [Jprogramming] Rank of an arbitrary matrix

2022-01-14 Thread Ric Sherlock
Putting John's suggestion of using LAPACK into practice. LAPACK is available in the J9.03 Package Manager via the math/lapack2 addon. Once installed (you also need to follow the simple steps to install the binary library for your OS) Then I think the following should calculate the matrix rank using

Re: [Jprogramming] Rank of an arbitrary matrix

2022-01-14 Thread Ric Sherlock
Or using Igor's math/mt addon: load 'math/mt' coinsert 'mt' calcMatrixRank_qrmt=: #@(] -. 0 #~ #)@([: clean tru@}:@geqrf) calcMatrixRank_qrmt _3 ]\ 1 2 3 5 4 6 9 7 8 3 calcMatrixRank_qrmt _3 ]\ 1 2 3 2 4 6 9 7 8 2 On Sat, Jan 15, 2022 at 3:30 PM Ric Sherlock wrote: > Putting John