cc.redberry.core.tensorgenerator
Class TensorGenerator
- java.lang.Object
-
- cc.redberry.core.tensorgenerator.TensorGenerator
-
public class TensorGenerator extends java.lang.ObjectGenerates tensor of the most general form with specified free indices from specified tensors.- Since:
- 1.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Tensorgenerate(SimpleIndices indices, Tensor[] samples, boolean symmetricForm, boolean withCoefficients, boolean raiseLower)Generates tensor of the most general form with specified free indices from specified tensors.static GeneratedTensorgenerateStructure(SimpleIndices indices, Tensor[] samples, boolean symmetricForm, boolean withCoefficients, boolean raiseLower)Generates tensor of the most general form with specified free indices from specified tensors.
-
-
-
Method Detail
-
generate
public static Tensor generate(SimpleIndices indices, Tensor[] samples, boolean symmetricForm, boolean withCoefficients, boolean raiseLower)
Generates tensor of the most general form with specified free indices from specified tensors.- Parameters:
indices- free indices of the resulting tensorsamples- samples which used to generate tensor of the general formsymmetricForm- specifies whether the resulting tensor should be symmetricwithCoefficients- specifies whether each term in the result should be multiplied on arbitrary coefficientraiseLower- specifies whether indices of samples should be raised and lowered in the most general form- Returns:
- tensor of the most general form with specified free indices from specified tensors
-
generateStructure
public static GeneratedTensor generateStructure(SimpleIndices indices, Tensor[] samples, boolean symmetricForm, boolean withCoefficients, boolean raiseLower)
Generates tensor of the most general form with specified free indices from specified tensors.- Parameters:
indices- free indices of the resulting tensorsamples- samples which used to generate tensor of the general formsymmetricForm- specifies whether the resulting tensor should be symmetricwithCoefficients- specifies whether each term in the result should be multiplied on arbitrary coefficientraiseLower- specifies whether indices of samples should be raised and lowered in the most general form- Returns:
- tensor of the most general form with specified free indices from specified tensors and array of generated coefficients
-
-
DataMelt 3.0 © DataMelt by jWork.ORG