Considering that, for the moment, I expect the matrix to have 12≥≢m so the positions will be around 24. (If the dimension of the vector can affect the efficiency of one method or the other one)
What about the difference between putting 0s in a matrix (that actually can be already a boolean one) and than use the function above and doing some calculations with the vector of positions?
Wait, I might have badly proposed what I was looking for. f ← ⍉⍱⍥(∨/∘,0 0∘⍷)× ⍝ This is my correct (and unefficient solution) It returns 0 if the matrix contains two consecutives 0s (It return 1 in this matrix 3 3⍴ 1 1 0 0 1 1 1 1) @Adám Is something like this correct? ⍉⍱⍥(∨/⍤∊2⍱/⊢)⊢
@JoshD Actually I already have positions of zeroes and the dimension of the matrix shouldn't exceed something like 30, but I always thought that checking relative positions of zeroes in a matrix would be simpler or more efficient, at least
Hi! I've modified this aplcart entry to find non-unique values of each row in a matrix and defined a function f, but when I run ]defs I see that f is displayed in form that I think isn't correct (although when using it, all work as desired). Am I wrong or should it be displayed like with parenthesis? [Below the function when I define it, and the result of defs]
@Adám It's ok, but I don't know if I'll be able to find some sequence of actions that will cause the crash. Now I'm only pretty sure that it's crashing when I try to load the old session configuration
I'm joking, it just crashed another time... I've executed a bounch of ]CD and ]LINK (and it gave VALUE ERROR: Undefined name: ⎕SE.UCMD) a 1+1, I've wroted the message above and when I returned to APL it closed
I've built a new session with this commands but now there's a non-resizable area below... [Here's a screenshot](https://ibb.co/5nyJ5pP) )load buildse BUILD_SESSION 'UK'
Hi! I was interesting to learn about multithreading in APL. I've tried to run this: {⍎'(⍎&''solver ''''',⍵,''''''')'}¨'02-swarming-ant' '02-swarming-ant' solver '02-swarming-ant', is executed in about 30s and the line above is executed in 1min, so apparently it starts two threading but they aren't executed at the same time.
@RikedyP This actually worked, I didn't find this page before. But is there a way to activate the shortcut with the CTRL key? Otherwise I have to change keyboard when I need to type numbers or characters...
@dzaima Is the problem that it detects multiple keyboards? Should I remove one or is there the option to let it access just one keyboard? Because I don't really need both when programming in APL
It's also possibile that I've done some errors trying to install it, cause I've tried a bounch of things, before I could get something that works in someway
Ride (installed from the latest release in GitHub) have a problem with the keyboard too: I have installed "Italian" and "English (UK)" keyboards on the system, and when I open Ride, it uses the active keyboard as normal, the other keyboard as the APL one (Like instead of pressing CTRL+R, I just have to press R), so it's a problem too, because, for example, to write five negative numbers I have to continuously change between one keyboard and the other one (or also to delete something)
Hi! I was trying to install Dyalog APL on Fedora 37, but I couldn't get something to work properly. Dyalog is from the terminal and I couldn't enable the keyboard mapping.
Hi! In the video about Artificial Life of @RikedyP, I've seen that he uses something like f⍤1⍤1 99⍨ to do like the outer product (I guess). When is it faster then ∘.f? Cause I've tried
]runtime -c "×⍤1⍤0 99⍨⍳ 1e3" "∘.×⍨⍳ 1e3"
and the second one seems faster.