예제 #1
0
        public bool Equals(Tensor <T>?tensor)
        {
            if (tensor is null)
            {
                return(false);
            }

            if (ReferenceEquals(this, tensor))
            {
                return(true);
            }

            return(Shape == tensor.Shape && SimdOps <T> .Equals(InternalArray, tensor.InternalArray));
        }
예제 #2
0
 public bool Equals(T value)
 {
     return(SimdOps <T> .Equals(InternalArray, value));
 }