/** * Generates a set of replacement rules for all scalar (but not symbolic) sub-tensors appearing in the specified * tensor. * * @param tensor tensor * @return set of replacement rules for all scalar (but not symbolic) sub-tensors appearing in the specified * tensor */ public static Expression[] generateReplacementsOfScalars(Tensor tensor) { return generateReplacementsOfScalars(tensor, CC.getParametersGenerator()); }