« first day (1858 days earlier)      last day (804 days later) » 

1:02 AM
@rak1507 ah its not. im just happy
:)
 
 
5 hours later…
5:52 AM
      strides←{×\1,⌽1↓⍴⍵}
      strides 3 4 5 6⍴⍳23
1 6 30 120
does strides show the distance between 2 elements in the same location, on different axis?
16 hours ago, by Razetime
19
Q: What is a strided array?

ThomsonThere is also a counterpart which is called density array. What does this mean? I have done some search, but didn't get accurate information.

^ im trying to understand that
 
 
1 hour later…
7:07 AM
is there a place i can get a string of all the apl symbols
 
 
4 hours later…
10:41 AM
@PyGamer0 archive.vector.org.uk/art10501160 this is a more APL related take on it. may be easier to understand.
scroll to the strided repr part
 
11:12 AM
thanks
> offset: the position in data where element [0;0;...;0] is located
does it mean the offset is the position in data where the first element of the array is located?
 
11:26 AM
yes
 
12:00 PM
@Razetime fwiw, ngn (the author of that article) later abandoned the strided array representation in ngn/apl
 
 
2 hours later…
1:41 PM
@dzaima .....
how did i not notice the author lol
and why did he abandon the strided array representation?
i think i understand how it works
 
2:05 PM
@PyGamer0 It doesn't give you much - there's O(1) transposing & reversing & drop/take. But if you want to be cache-friendly, you'd have to do a block-based transpose on any operation acting on a transposed stride array anyway, and things like monadic , or reshape get less efficient & more compilcated to implement
 
oh
@dzaima how does your APL implementation store its arrays?
 
just a flat array of items in ravel order
along with an array of the shape (and an extra field of the product of the shape, aka total element count, but that's mostly just an optimization)
 
oh
 

« first day (1858 days earlier)      last day (804 days later) »