
jscl.text.MatrixVariableParser Maven / Gradle / Ivy
package jscl.text;
import jscl.math.Generic;
import jscl.math.Matrix;
import jscl.math.MatrixVariable;
import jscl.math.Variable;
import javax.annotation.Nonnull;
class MatrixVariableParser implements Parser {
public static final Parser parser = new MatrixVariableParser();
private MatrixVariableParser() {
}
public Variable parse(@Nonnull Parameters p, Generic previousSumElement) throws ParseException {
Matrix m;
try {
m = (Matrix) MatrixParser.parser.parse(p, previousSumElement);
} catch (ParseException e) {
throw e;
}
return new MatrixVariable(m);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy