public class FlatStepVisitor extends org.matheclipse.combinatoric.AbstractListStepVisitor<IExpr>
NumberPartitionsIterator
to match flat expressions in pattern matching.PatternMatcher
,
NumberPartitionsIterator
Modifier and Type | Field and Description |
---|---|
protected IAST |
fLhsPatternAST |
protected boolean |
fOneIdentity |
protected PatternMap |
fPatternMap |
protected ISymbol |
fSymbol |
protected IExpr[] |
patternValues |
protected PatternMatcher.StackMatcher |
stackMatcher |
Constructor and Description |
---|
FlatStepVisitor(ISymbol sym,
IAST lhsPatternAST,
IAST lhsEvalAST,
PatternMatcher.StackMatcher stackMatcher,
PatternMap patternMap) |
FlatStepVisitor(ISymbol sym,
IAST lhsPatternAST,
IAST lhsEvalAST,
PatternMatcher.StackMatcher stackMatcher,
PatternMap patternMap,
boolean oneIdentity) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matchSinglePartition(int[][] result,
PatternMatcher.StackMatcher stackMatcher)
Match a single partition combination
|
boolean |
visit(int[][] result)
Get the current result of the combinatorics algorithm step.
|
protected ISymbol fSymbol
protected PatternMatcher.StackMatcher stackMatcher
protected PatternMap fPatternMap
protected IExpr[] patternValues
protected IAST fLhsPatternAST
protected final boolean fOneIdentity
public FlatStepVisitor(ISymbol sym, IAST lhsPatternAST, IAST lhsEvalAST, PatternMatcher.StackMatcher stackMatcher, PatternMap patternMap)
public FlatStepVisitor(ISymbol sym, IAST lhsPatternAST, IAST lhsEvalAST, PatternMatcher.StackMatcher stackMatcher, PatternMap patternMap, boolean oneIdentity)
public boolean visit(int[][] result)
visit
in interface org.matheclipse.combinatoric.IStepVisitor
visit
in class org.matheclipse.combinatoric.AbstractListStepVisitor<IExpr>
false
if the combinatorics algorithm should stop
immediately; true
otherwise.IStepVisitor.visit(int[][])
protected boolean matchSinglePartition(int[][] result, PatternMatcher.StackMatcher stackMatcher)
result
- stackMatcher
-