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

Class Expression

    • 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
      • 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
      • 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)
        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
      • transform

        public Tensor transform(Tensor t)
        Description copied from interface: Transformation
        Transforms specified tensor and returns the result.
        Specified by:
        transform in interface Transformation
        Parameters:
        t - tensor
        Returns:
        transformed tensor
      • isIdentity

        public boolean isIdentity()
        Returns true if r.h.s. is equal to l.h.s.
        Returns:
        true if r.h.s. is equal to l.h.s.
      • transpose

        public Expression transpose()
        Swaps l.h.s. and r.h.s. of expression.
        Returns:
        swapped expression

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.