Example #1
0
 public bool Equals(GenTensor <T> obj)
 {
     if (obj.Shape != Shape)
     {
         return(false);
     }
     foreach (var(index, _) in obj.Iterate())
     {
         if (!ConstantsAndFunctions <T> .AreEqual(this.GetValueNoCheck(index), obj.GetValueNoCheck(index)))
         {
             return(false);
         }
     }
     return(true);
 }