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

Class TensorWrapper

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


    public final class TensorWrapper
    extends Tensor
    Technical class.
    Since:
    1.0
    • Method Detail

      • 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
      • getIndices

        public Indices getIndices()
        Description copied from class: Tensor
        Returns indices of this tensor.
        Specified by:
        getIndices in class Tensor
        Returns:
        indices of this tensor
      • 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

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.