Search in sources :

Example 1 with GradientFunctionDefinition

use of cbit.vcell.math.GradientFunctionDefinition in project vcell by virtualcell.

the class DataSetControllerImpl method hasGradient.

private boolean hasGradient(Expression exp) {
    boolean hasGradient = false;
    FunctionInvocation[] functionInvocations = exp.getFunctionInvocations(null);
    for (FunctionInvocation fi : functionInvocations) {
        if (fi.getSymbolTableFunctionEntry() instanceof GradientFunctionDefinition) {
            hasGradient = true;
        }
    }
    return hasGradient;
}
Also used : FunctionInvocation(cbit.vcell.parser.FunctionInvocation) GradientFunctionDefinition(cbit.vcell.math.GradientFunctionDefinition)

Aggregations

GradientFunctionDefinition (cbit.vcell.math.GradientFunctionDefinition)1 FunctionInvocation (cbit.vcell.parser.FunctionInvocation)1