map -package:base-compat-batteries -package:bytestring -package:ghc package:dense-linear-algebra

Apply function to every element of matrix