* @param transformations transformations to be applied to the expression that forms the coefficient
* of each term obtained
*/
public CollectTransformation(SimpleTensor[] patterns, Transformation[] transformations) {
patternsNames = new TIntHashSet();
powerExpand = new PowerUnfoldTransformation(patterns);
for (SimpleTensor t : patterns)
patternsNames.add(t.getName());
this.transformations = transformations;
}