Class ArrayBasedTensor<N extends java.lang.Comparable<N>,​T extends ArrayBasedTensor<N,​T>>

    • Field Detail

      • myDimensions

        private final int myDimensions
      • myFunctionSet

        private final FunctionSet<N extends java.lang.Comparable<N>> myFunctionSet
      • myRank

        private final int myRank
      • myScalarFactory

        private final Scalar.Factory<N extends java.lang.Comparable<N>> myScalarFactory
    • Constructor Detail

    • Method Detail

      • dimensions

        public final int dimensions()
        Description copied from interface: Tensor
        The range of the indices that identify the scalar components. Each index of a tensor ranges over the number of dimensions.
        Specified by:
        dimensions in interface Tensor<N extends java.lang.Comparable<N>,​T extends ArrayBasedTensor<N,​T>>
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • rank

        public final int rank()
        Description copied from interface: Tensor
        The total number of indices required to uniquely identify each scalar component is called the order, degree or rank of the tensor.
        Specified by:
        rank in interface Tensor<N extends java.lang.Comparable<N>,​T extends ArrayBasedTensor<N,​T>>
      • newSameShape

        abstract T newSameShape()