braincore.math.remove_diag#
- braincore.math.remove_diag(arr)#
Remove the diagonal of the matrix.
- Parameters:
arr (ArrayType) – The matrix with the shape of (M, N).
- Returns:
arr – The matrix without diagonal which has the shape of (M, N-1).
- Return type:
Array