Is there a term for a matrix that is like the identity matrix but with the values swapped? That is, 1's everywhere except the diagonal which has 0's.
[[0, 1, 1, 1],
[1, 0, 1, 1],
[1, 1, 0, 1],
[1, 1, 1, 0]]
Of course, that's easily created with something like abs(numpy.eye(4) - 1). But, does it have a name or at least a phrase that describes it?
No comments:
Post a Comment