@Override
    public PrimitiveTensorFunction<NAMETYPE> toPrimitive() {
        return new Map<>(argument.toPrimitive(), mapper);
    }
The <i>map</i> tensor function produces a tensor where the given function is applied on each cell value.

@author bratseth
vespajlib/src/main/java/com/yahoo/tensor/functions/Map.java