cc.redberry.core.tensor.functions
Class ScalarFunction
- java.lang.Object
-
- cc.redberry.core.tensor.Tensor
-
- cc.redberry.core.tensor.functions.ScalarFunction
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description abstract Tensorderivative()Tensorget(int i)Returns element at i-th position.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.-
Methods inherited from class cc.redberry.core.tensor.Tensor
compareTo, getBuilder, getFactory, getRange, hashCode, iterator, set, toArray, toString
-
-
-
-
Method Detail
-
getIndices
public final Indices getIndices()
Description copied from class:TensorReturns indices of this tensor.- Specified by:
getIndicesin classTensor- Returns:
- indices of this tensor
-
derivative
public abstract Tensor derivative()
-
get
public final Tensor get(int i)
Description copied from class:TensorReturns element at i-th position.
-
size
public final int size()
Description copied from class:TensorReturns the number of elements in this tensor.
-
toString
public final 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