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

Apply function to every element of matrix