|
So I actually program use APL at work. Once you get past the syntax and the special characters, its quite nice. Prototyping is a breeze Also, as you could imagine, the user community is quite idiosyncratic.
|
# ¿ Apr 29, 2016 01:52 |
|
|
# ¿ Apr 28, 2024 23:09 |
|
Symbolic Butt posted:I need help from someone more fluent in APL than I am lol It looks like he skipped over how he broke up A and B each into a vector of vectors. It was with the enclose operations (the ⊂ commands on the first line). The [x] direct which axis of the matrix to do the enclose along. Although I'm not sure why he uses a zilde and a 1 for axes, it should be a 1 and a 2 (different flavor of APL maybe?)
|
# ¿ Jun 16, 2016 03:13 |
|
Athas posted:Congratulations on the job! Two things i noticed: -You can use the [x] modifier on ↓ (e.g. ↓[1] and ↓[2]) to control whether you drop the first row or column from the matrix, instead of doing all those transpose operations.↓[1] will drop by rows, and ↓[2] by columns -If you're appending a row or column that is a single value to a matrix, you don't need to add it as a vector. You just need to concatenate the value of interest with the matrix using the , function (and again, you can control whether you append as a row or column by using the [x] modifier on ,). So, matrix,0 will add a whole column of zeros to the right of the matrix, and 0,matrix will add it to the left. No idea if this will make it faster, but it will be easier to read.
|
# ¿ Jun 21, 2016 02:32 |