liftM package:hmatrix

application of a vector function on the flattened matrix elements
application of a vector function on the flattened matrices elements
A version of liftMatrix2 which automatically adapt matrices with a single row or column to match the dimensions of the other matrix.