cc.redberry.core.tensor
Class TensorWrapper
- java.lang.Object
-
- cc.redberry.core.tensor.Tensor
-
- cc.redberry.core.tensor.TensorWrapper
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description Tensorget(int i)Returns element at i-th position.TensorBuildergetBuilder()Creates a builder for this tensor.TensorFactorygetFactory()Returns a factory for this tensor.IndicesgetIndices()Returns indices of this tensor.intsize()Returns the number of elements in this tensor.java.lang.StringtoString(OutputFormat mode)Returns a string representation of a tensor according to the specifiedOutputFormat.static TensorWrapperwrap(Tensor tensor)
-
-
-
Method Detail
-
get
public Tensor get(int i)
Description copied from class:TensorReturns element at i-th position.
-
size
public int size()
Description copied from class:TensorReturns the number of elements in this tensor.
-
getBuilder
public TensorBuilder getBuilder()
Description copied from class:TensorCreates a builder for this tensor. SeeTensorBuilderfor more information.- Specified by:
getBuilderin classTensor- Returns:
- builder for this tensor
-
getFactory
public TensorFactory getFactory()
Description copied from class:TensorReturns a factory for this tensor. SeeTensorFactoryfor more information.- Specified by:
getFactoryin classTensor- Returns:
- builder for this tensor
-
wrap
public static TensorWrapper wrap(Tensor tensor)
-
getIndices
public Indices getIndices()
Description copied from class:TensorReturns indices of this tensor.- Specified by:
getIndicesin classTensor- Returns:
- indices of this tensor
-
toString
public java.lang.String toString(OutputFormat mode)
Description copied from class:TensorReturns a string representation of a tensor according to the specifiedOutputFormat.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG