map -package:base-compat-batteries -package:basement package:dense-linear-algebra -is:exact

Apply function to every element of matrix