Package com.singularsys.extensions.fastmatrix
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:
-
ClassesClassDescriptionA list of commands evaluated in sequence by the evaluator.Data type for the command stringA fast evaluation algorithm for equations using Vectors and Matrix over the Doubles.The values returned by the evaluator and the base type for internal types.A reference to a variable used by the fast matrix evaluation package