Here is on way to do it but I don't think ist the "most elegant" as I don't like to use the ranges for that purpose.
I'd rather prefer using a program which will take the nested matrix which a vectorized call would return and calculates and returns the unnested matrix.
But as a quick hack this appraoch may suffice:
EDIT: Just noticed - you can omit the vectorization in that appraoch as you are only passing a signle scalar as argument.