Functor does not reset the inputs to their original value
MatrixFromFunction, working