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

Class SimpleTensor

  • All Implemented Interfaces:
    java.lang.Comparable<Tensor>, java.lang.Iterable<Tensor>
    Direct Known Subclasses:
    TensorField


    public class SimpleTensor
    extends Tensor
    Implementation of simple tensor.
    Since:
    1.0
    • Method Detail

      • getName

        public int getName()
        Returns the name (unique identifier) of this tensor.
        Returns:
        name of this tensor
        See Also:
        NameDescriptor
      • getIndices

        public SimpleIndices getIndices()
        Description copied from class: Tensor
        Returns indices of this tensor.
        Specified by:
        getIndices in class Tensor
        Returns:
        indices of this tensor
      • get

        public Tensor get(int i)
        Description copied from class: Tensor
        Returns element at i-th position.
        Specified by:
        get in class Tensor
        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.
        Specified by:
        size in class Tensor
        Returns:
        the number of elements in this tensor
      • toString

        public java.lang.String toString(OutputFormat mode,
                                         java.lang.Class clazz)
        Description copied from class: Tensor
        For internal use.
      • toString

        public java.lang.String toString(OutputFormat mode)
        Description copied from class: Tensor
        Returns a string representation of a tensor according to the specified OutputFormat.
        Specified by:
        toString in class Tensor
        Parameters:
        mode - output format
        Returns:
        a string representation of a 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 Tensor
        Returns:
        read-only iterator over tensor elements
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getStringName

        public java.lang.String getStringName()

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.