See: Description
| Class | Description |
|---|---|
| MrpCommandList |
A list of commands evaluated in sequence by the evaluator.
|
| MrpCommandList.MrpCommand |
Data type for the command string
|
| MrpEval |
A fast evaluation algorithm for equations using Vectors and Matrix over the Doubles.
|
| MrpRes |
The values returned by the evaluator and the base type for internal types.
|
| MrpVarRef |
A reference to a variable used by the fast matrix evaluation package
|
Fast evaluation routines for matrices and vectors with double elements.
A Typical setup would be
MatrixComponentSet compSet = new MatrixComponentSet(new DoubleMatrixComponents()); Jep jep = new Jep(compSet); DimensionVisitor dimV = compSet.getDimensionVisitor(); MrpEval mrpe = new MrpEval(jep);
Expressions would then be complied using
Node node = jep.parse("[[1,2],[3,4]] *[1,2]");
dimV.visit(node);
MrpCommandList com = mrpe.compile(node);
and evaluate with
MrpRes res = mrpe.evaluate(com); System.out.println(Arrays.toString(res.toDoubleVec()));
Copyright © 2018 Singular Systems http://www.singularsys.com/jep