|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.nfunk.jep.JEP
org.lsmp.djep.vectorJep.VectorJep
public class VectorJep
An extension of JEP with support for basic vectors and matrices. Use this class instead of JEP if you wish to use vectors and matrices.
Field Summary |
---|
Fields inherited from class org.nfunk.jep.JEP |
---|
allowAssignment, allowUndeclared, errorList, ev, funTab, implicitMul, numberFactory, opSet, parser, symTab |
Constructor Summary | |
---|---|
VectorJep()
|
|
VectorJep(JEP j)
|
Method Summary | |
---|---|
void |
addStandardFunctions()
Adds the standard functions to the parser. |
java.lang.Object |
evaluate(Node node)
Evaluate a node. |
java.lang.Object |
evaluateRaw(Node node)
Evaluate a node. |
void |
setElementMultiply(boolean value)
When set the multiplication of vectors and matrices will be element by element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VectorJep()
public VectorJep(JEP j)
Method Detail |
---|
public void addStandardFunctions()
JEP
addStandardFunctions
in class JEP
public java.lang.Object evaluate(Node node) throws ParseException
evaluate
in class JEP
node
- the top node of the tree representing the expression.
ParseException
- if for some reason the expression could not be evaluatedpublic java.lang.Object evaluateRaw(Node node) throws java.lang.Exception
java.lang.Exception
public void setElementMultiply(boolean value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |