cc.redberry.core.tensor
Class Split
- java.lang.Object
-
- cc.redberry.core.tensor.Split
-
public class Split extends java.lang.ObjectA container for indexless summand (with empty indices, but not necessary symbolic) and indexed factor (with non empty indices) parts of product, used to collect terms with similar factors inSumBuilder.- Since:
- 1.0
-
-
Field Summary
Fields Modifier and Type Field and Description TensorfactorIndexed factorTensorsummandIndexless summand
-
Constructor Summary
Constructors Constructor and Description Split(Tensor factor, Tensor summand)Creates split from factor and summand
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description TensorBuildergetBuilder()Returns a kind of sum builder.static SplitsplitIndexless(Tensor tensor)Splits product on indexless summand and indexed factor.static SplitsplitScalars(Tensor tensor)Splits product on scalar part (with empty free indices) and indexed partjava.lang.StringtoString()
-
-
-
Field Detail
-
factor
public final Tensor factor
Indexed factor
-
summand
public final Tensor summand
Indexless summand
-
-
Method Detail
-
getBuilder
public TensorBuilder getBuilder()
Returns a kind of sum builder.- Returns:
- a kind of sum builder
-
splitScalars
public static Split splitScalars(Tensor tensor)
Splits product on scalar part (with empty free indices) and indexed part- Parameters:
tensor- tensor- Returns:
- split
-
splitIndexless
public static Split splitIndexless(Tensor tensor)
Splits product on indexless summand and indexed factor.- Parameters:
tensor- tensor- Returns:
- split
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG