delete_diagonal#

hypercoil.functional.matrix.delete_diagonal(A: Tensor) Tensor[source]#

Delete the diagonal from a block of square matrices. Dimension is inferred from the final axis.