Package com.singularsys.extensions.fastmatrix
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()));
- Since:
- Jep 3.5 / Extensions 2.0
- See Also:
- Fastmatrix documentation
-
Class Summary Class Description MrpCommandList A list of commands evaluated in sequence by the evaluator.MrpCommandList.MrpCommand Data type for the command stringMrpEval 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