@Adám haven't watched the presentation yet (though from the supporting material I'm gathering that it's mostly about @), but as an initial draft... Feedback welcome from all sides!
also note: I've no idea if there even ma be similar primitive in J/K/BQN etc, so I didn't mention those at all
@RGS You're welcome to :D though I have to admit that, of course, much of the content is taken from the article by Roger Hui and the Dyalog Language doc :p
@WongJiaHau They were invented as a parallel to the traditional mathematical notation (f+g)(x) and were actually invented in APL, but first implemented in J.
@Adám hmm that's something I don't understand (yet) -- could you elaborate how trains (or the like) generalize distributions (of which I recon you're talking about the distributions from stochastics)?
side note: in the code example immediately prior to here⊢ is mentioned (to be used so that a value is printed) but you're assigning to quad instead in the example.
@JosephAdams FYI (you don't have to write it up), Stencil is derived from case 3 of J's Cut (more detailed doc), with modifications. Everything I know of in any other language is more like Windowed Reduce than Stencil, although I don't know K very well.
I guess in that regard J's cut is in fact better :P suppose the major work is figuring out how much larger one has to choose the rectangles so you can chop away the padding
oh, though not quite -- the inner rectangles then are too large too...hmmm does seem quite bad after all
Luckily, there is plenty of "design space" in ⌺ to allow specification of starting point. E.g. it could be specified as an offset in a third row of the right operand.
@Adám I most definitely am. I touched on it briefly in school and have since been planning on spending some time learning it in depth. Finally have the time this summer. I just ordered the Dyalog APL book which Amazon says is coming Monday. I'll probably start hanging out around here with questions :)
Actually just saw that and will definitely be trying out the problems, but I've graduated already so not eligible for the prize (not that I think I have a chance this early into my apl education)
It's the style that drew me to apl We had a hw to get the avg of a 2d array and that's when it clicked for me. Went from 'what is this "language"' to 'wow'
eh, kind of a silly question, but how do i write a matrix as a literal? i tried a bunch of ways but all of them either fail or just give a flat list, i'm a bit confused because i don't remember doing this before :P
My solution was this (given my very very limited apl knowledge) +/+/M÷×/⍴M Get the sum of the sum of the array (so 2d down to 1d down to a single total) Divided by the product of the dimensions of the array (so total elements) ergo: sum/count
@hyper-neutrino lol I don't know what half those symbols do