Using scan to loop across differenet length of vectors

Is it reasonable to split into multiple scans (assuming you only have a handful of different matrices sizes)? A scan for the 10x trials, and another for the 9x trials

Otherwise you could perhaps pad the shorter sequences with zeros (or a value that does not affect the computation with whatever you do afterwards)

1 Like