AbstractScalarFunction func = (AbstractScalarFunction) target;
Tensor der = getDerivative(func.getInnerTensor(), var);
if (der == null)
return null;
if (isOne(der))
return func.derivative();
return new Product(func.derivative(), der);
}
//TODO get derivative ot derivative
return null;
}