public class OrderlessStepVisitor extends FlatOrderlessStepVisitor implements org.matheclipse.combinatoric.IStepVisitor
MultisetPartitionsIterator
to match orderless expressions in pattern matching.PatternMatcher
,
MultisetPartitionsIterator
multiset
fLhsPatternAST, fOneIdentity, fPatternMap, fSymbol, patternValues, stackMatcher
Constructor and Description |
---|
OrderlessStepVisitor(ISymbol sym,
IAST lhsPatternAST,
IAST lhsEvalAST,
PatternMatcher.StackMatcher stackMatcher,
PatternMap patternMap,
boolean oneIdentity)
This visitor is used in an
MultisetPartitionsIterator to match orderless expressions in pattern matching. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matchSinglePartition(int[][] result,
PatternMatcher.StackMatcher stackMatcher)
Match a single partition combination
|
getMultisetArray
visit
public OrderlessStepVisitor(ISymbol sym, IAST lhsPatternAST, IAST lhsEvalAST, PatternMatcher.StackMatcher stackMatcher, PatternMap patternMap, boolean oneIdentity)
MultisetPartitionsIterator
to match orderless expressions in pattern matching. The
lhsPatternAST.size()
must be equal to lhsEvalAST.size()
.PatternMatcher
,
MultisetPartitionsIterator
protected boolean matchSinglePartition(int[][] result, PatternMatcher.StackMatcher stackMatcher)
FlatStepVisitor
matchSinglePartition
in class FlatStepVisitor