Thursday, August 17, 2017

matrices - Is there a term for a matrix of 1's but with 0's along the diagonal?

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

analysis - Injection, making bijection

I have injection $f \colon A \rightarrow B$ and I want to get bijection. Can I just resting codomain to $f(A)$? I know that every function i...