@Override
    public TensorFunction<NAMETYPE> withArguments(List<TensorFunction<NAMETYPE>> arguments) {
        if (arguments.size() != 1)
            throw new IllegalArgumentException("FilterSubspaces must have 1 argument, got " + arguments.size());
        return new FilterSubspaces<NAMETYPE>(arguments.get(0), function);
    }
The <i>filter_subspaces</i> tensor function selects some cells or subspaces in a mapped or mixed tensor

@author arnej
vespajlib/src/main/java/com/yahoo/tensor/functions/FilterSubspaces.java