[personal profile] sassa_nf
zap = zipWith ($)
vec f a b = zap (zap (repeat f) a) b
mx f = vec $ vec f

processMatrix mat = ...
    where
       mats = mat:vec (mx (+)) mats (init $ tails $ tail mat) -- find all matrices consisting of sums of consecutive rows of mat
       maxes = concat $ mx doCols [[(r0,r0+h) | r0 <- [0..]] | h <- [0..]] mats  -- apply doCols to individual rows of the list of matrices
       ...

Profile

sassa_nf

February 2026

S M T W T F S
1234567
891011121314
15161718192021
222324252627 28

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 22nd, 2026 02:24 am
Powered by Dreamwidth Studios