Documentation of 'cc.redberry.core.tensor.TensorField' Java class
TensorField
cc.redberry.core.tensor

Class TensorField

  • All Implemented Interfaces:
    java.lang.Comparable<Tensor>, java.lang.Iterable<Tensor>


    public final class TensorField
    extends SimpleTensor
    Representation of tensor field.
    Since:
    1.0
    • Method Detail

      • getArguments

        public Tensor[] getArguments()
      • isDerivative

        public boolean isDerivative()
      • get

        public Tensor get(int i)
        Description copied from class: Tensor
        Returns element at i-th position.
        Overrides:
        get in class SimpleTensor
        Parameters:
        i - position
        Returns:
        element at i-th position
      • size

        public int size()
        Description copied from class: Tensor
        Returns the number of elements in this tensor.
        Overrides:
        size in class SimpleTensor
        Returns:
        the number of elements in this tensor
      • iterator

        public java.util.Iterator<Tensor> iterator()
        Description copied from class: Tensor
        Return read-only iterator over tensor elements.
        Specified by:
        iterator in interface java.lang.Iterable<Tensor>
        Overrides:
        iterator in class SimpleTensor
        Returns:
        read-only iterator over tensor elements
      • getRange

        public Tensor[] getRange(int from,
                                 int to)
        Description copied from class: Tensor
        Retrieves several sub-tensors from current tensor. This function is faster than sequential invocations of Tensor.get(int) method.
        Overrides:
        getRange in class Tensor
        Parameters:
        from - index of first sub-tensor to be retrieved (inclusive)
        to - next index after last sub-tensor to be retrieved (exclusive)
        Returns:
        array with retrieved tensors
      • getParentField

        public TensorField getParentField()
        Return tensor field from which the derivative is taken. If this is derivative (e.g. f_m~(1)[k_a]), returns target tensor field of this (i.e. f[k_a]); otherwise, returns this.
        Returns:
        tensor field from which the derivative is taken
      • getDeivativeOrder

        public int getDeivativeOrder(int i)
        Returns the order of derivative with respect to argument at specified position.
        Returns:
        the order of derivative with respect to argument at specified position
      • getPartitionOfIndices

        public SimpleIndices[][] getPartitionOfIndices()
        Calculates and returns partition of derivative indices. The resulting array organized as follows: result[0][0] --- contains pure field indices (result[0].length == 1), result[i][j] --- are indices formed by j-th derivative with respect to i-th field argument
        Returns:
        partition of derivative indices
      • toString0

        public java.lang.String toString0(OutputFormat mode)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.