I don’t fully understand how the posted examples select “different numbers of vectors per dimension”, as it seems that B is used to index entire “rows” of A. Could you explain where the variable length is used in your example?