Class AbstractTensor<V>

  • Type Parameters:
    V - the type of the values of the tensor
    All Implemented Interfaces:
    Tensor<V>, Tensoric<V>
    Direct Known Subclasses:
    AbstractScalar, BroadcastedTensorView, ImmutableDoubleArrayBackedTensor, ImmutableTensor

    public abstract class AbstractTensor<V>
    extends java.lang.Object
    implements Tensor<V>
    Provides sceletal behaviour of tensors. It is highly recommended that all implementations of this tensor inherit from this class. This is particularly important in order to respect the equality of tensors.
    • Constructor Detail

      • AbstractTensor

        public AbstractTensor()
    • Method Detail

      • hashCode

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

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