/** * @deprecated very unsafe method without checks */ @Deprecated public static Tensor multiplySumElementsOnFactors(Sum sum) { final Tensor[] newSumData = new Tensor[sum.size()]; for (int i = newSumData.length - 1; i >= 0; --i) newSumData[i] = multiply(CC.generateNewSymbol(), sum.get(i)); return new Sum(newSumData, IndicesFactory.create(newSumData[0].getIndices().getFree())); }
tensorSubstitutions.put(scalar, CC.generateNewSymbol());
SimpleTensor nVar = CC.generateNewSymbol(); unknownCoefficients.add(nVar); generalSolutions[i] = Tensors.expression(vars[i], nVar);
} else { if (withCoefficients) { newCoefficient = CC.generateNewSymbol(); this.coefficients.add((SimpleTensor) newCoefficient); this.coefficients.removeAll(TensorUtils.getAllSymbols(oldCoefficient));
Tensor coefficient; if (withCoefficients) { coefficient = CC.generateNewSymbol(); coefficients.add((SimpleTensor) coefficient); } else coefficient = Complex.ONE;