private ProviderPowFactory() {
}
@Override
public IndexMappingProvider create(IndexMappingProvider opu, Tensor from, Tensor to, boolean allowDiffStates) {
final Pow fromP = (Pow) from, toP = (Pow) to;
if (IndexMappings.mappingExists(fromP.getPower(), toP.getPower(), allowDiffStates) && IndexMappings.mappingExists(fromP.getTarget(), toP.getTarget(), allowDiffStates))
return opu;
return IndexMappingProvider.Util.EMPTY_PROVIDER;
}