Re: [Jprogramming] NYCJUG: Thinking in an Array Language

2022-07-12 Thread Henry Rich
I have to question the use of 'elegant' here. Matrix multiplication has a similarly short representation in J. But the actual code: it breaks the operation into several layers of loops: one sized to the registers, one sized to D1$, one sized to D2$. Simply following the definition of the oper

Re: [Jprogramming] NYCJUG: Thinking in an Array Language

2022-07-12 Thread Raul Miller
Well... of course, you can express matrix multiplication *using* rank: (1+i.4 3) +/@:*"1 _(1+i.3 4) 38 44 50 56 83 98 113 128 128 152 176 200 173 206 239 272 And, conceptually, all verbs in J have rank, so that always gets used. But, I guess you are asking how to avoid the rank conjunct

[Jprogramming] NYCJUG: Thinking in an Array Language

2022-07-12 Thread Thomas McGuire
Devon had shared a kx example of performing matrix multiplication backing out the loops from a wikipedia pseudocode. Providing an elegant solution in K. You can see it in the NYCJUG notes here: https://code.jsoftware.com/wiki/NYCJUG/2022-07-12

Re: [Jprogramming] J Playground neural network demo

2022-07-12 Thread Raul Miller
On Tue, Jul 12, 2022 at 3:23 PM Jan-Pieter Jacobs wrote: > A pull-request for 2 characters seemed a bit heavy handed, so I report it > here, hoping you could fix it when you see fit. Web work is often non-intuitive. (Or, I suspect that a pull request would have been fine, here.) > To avoid pushi

Re: [Jprogramming] J Playground neural network demo

2022-07-12 Thread Jan-Pieter Jacobs
Hi Joe, Apparently I indeed made a mistake in the NN example, I didn't duplicated the \ for on lines 317 and 339 of examples.js. This causes the intended \ to disappear in the editor and the example not to work, sorry for the mess. A pull-request for 2 characters seemed a bit heavy handed, so I re