powered by
Removes the diagonal elements from a square matrix.
remove_diagonal(A)
martix A with diagonals removed
square matrix
if (FALSE) cleaned_dist <- remove_diagonal(dist_matrix)
Run the code above in your browser using DataLab