/** * Creates a new GAPPVector * @return The new GAPPVector */ private GAPPVector createVe() { return new GAPPVector(createTMP(PREFIX_VE)); }
/** * Creates a new temporary GAPPMultivector and inserts a resetMv command in GAPP * @param The number of entries in the new multivector * @return The new GAPPMultivector */ public GAPPMultivector createMv() { GAPPMultivector mv = new GAPPMultivector(createTMP(PREFIX_TMPMV)); gapp.addInstruction(new GAPPResetMv(mv, 1)); return mv; }
/** * Creates a temporary multivector with one entry and returns the according GAPPMultivectorComponent * @return The GAPPMultivectorComponent */ public GAPPMultivectorComponent createMvComp() { GAPPMultivector mv = new GAPPMultivector(createTMP(PREFIX_TMPMV)); gapp.addInstruction(new GAPPResetMv(mv, 1)); return new GAPPMultivectorComponent(mv.getName(), 0); }