The title is not very good but what I want to is the following:

```
H(x->f(x),x) #returns a vector
H((x,y)->f(x,y),x,y) #returns a matrix of dimension (length(x),length(y))
H((x,y,z)->f(x,y,z),x,y,z) #returns a 3D matrix of dimension (length(x),length(y),length(z))
etc...
```

Is there a generic function `H(f,vars....)`

to do that ? x,y,z being vectors.