Thank you, @seanmor5
“…a way to ignore them in a downstream calculation.” This is correct. I take a function of each of the distance values and then sum across each row. However, the function has the distance in the denominator, which is not good if the distance is zero.
For purposes of discussion, the function could be Nx.divide(1,d) where d is an individual value from the tensor. The diagonal will always be zeros, but it is possible they could show up in other regions as well.






















