map -package:containers -package:case-insensitive -package:foldl package:dense-linear-algebra

Apply function to every element of matrix