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

Class MultiTensor

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


    public abstract class MultiTensor
    extends Tensor
    Parent class for sums and products.
    Since:
    1.0
    • Method Detail

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

        public abstract Tensor remove(int position)
        Removes tensor at the specified position and returns the result.
        Parameters:
        position - position in tensor
        Returns:
        result of removing
      • remove

        public Tensor remove(Tensor tensor)
        Removes the first occurrence of the specified tensor (reference) from this list, if it is present. If the tensor does not contain the element, it is unchanged. More formally, removes the element with the lowest index i such that t == get(i) (if such an element exists).
        Parameters:
        tensor - specified reference
        Returns:
        result of removing
      • remove

        public Tensor remove(int[] positions)
        Removes tensors at the specified positions and returns the result.
        Parameters:
        positions - position in tensor
        Returns:
        result of removing
        Throws:
        java.lang.IndexOutOfBoundsException
      • select

        public Tensor select(int[] positions)
        Selects tensors at the specified positions and puts it together.
        Parameters:
        positions - positions in tensor
        Returns:
        result subtensor

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.