org.matheclipse.core.patternmatching
Class FlatStepVisitor
- java.lang.Object
-
- org.matheclipse.combinatoric.AbstractListStepVisitor<IExpr>
-
- org.matheclipse.core.patternmatching.FlatStepVisitor
-
- All Implemented Interfaces:
- IStepVisitor
- Direct Known Subclasses:
- FlatOrderlessStepVisitor
public class FlatStepVisitor extends AbstractListStepVisitor<IExpr>
This visitor is used in anNumberPartitionsIteratorto match flat expressions in pattern matching.- See Also:
PatternMatcher,NumberPartitionsIterator
-
-
Constructor Summary
Constructors Constructor and Description FlatStepVisitor(ISymbol sym, IAST lhsPatternAST, IAST lhsEvalAST, org.matheclipse.core.patternmatching.PatternMatcher.StackMatcher stackMatcher, PatternMap patternMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanvisit(int[][] result)Get the current result of the combinatorics algorithm step.-
Methods inherited from class org.matheclipse.combinatoric.AbstractListStepVisitor
getMultisetArray, visit
-
-
-
-
Constructor Detail
-
FlatStepVisitor
public FlatStepVisitor(ISymbol sym, IAST lhsPatternAST, IAST lhsEvalAST, org.matheclipse.core.patternmatching.PatternMatcher.StackMatcher stackMatcher, PatternMap patternMap)
-
-
Method Detail
-
visit
public boolean visit(int[][] result)
Get the current result of the combinatorics algorithm step.- Specified by:
visitin interfaceIStepVisitor- Overrides:
visitin classAbstractListStepVisitor<IExpr>- Returns:
falseif the combinatorics algorithm should stop immediately;trueotherwise.- See Also:
IStepVisitor.visit(int[][])
-
-
DMelt 3.0 © DataMelt by jWork.ORG