org.lsmp.djep.matrixJep.MatrixVariableFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jep Show documentation
Show all versions of jep Show documentation
JEP is a Java library for parsing and evaluating mathematical expressions.
The newest version!
/* @author rich
* Created on 19-Dec-2003
*/
package org.lsmp.djep.matrixJep;
import org.lsmp.djep.djep.*;
import org.nfunk.jep.Node;
import org.nfunk.jep.Variable;
/**
* Allows creation of matrix aware variables.
*
* @author Rich Morris
* Created on 19-Dec-2003
*/
public class MatrixVariableFactory extends DVariableFactory {
/** create a derivative */
public PartialDerivative createDerivative(DVariable var,String[] dnames,Node eqn) {
return null;
}
/** Create a variable with a given value. */
public Variable createVariable(String name, Object value) {
return new MatrixVariable(name,value);
}
/** Create a variable with a given value. */
public Variable createVariable(String name) {
return new MatrixVariable(name);
}
}