All Questions
1 question
3
votes
2
answers
153
views
Check an input matrix M contains any nonzero diagonal matrix element or not
Is there a way to easily check an input matrix M contains any nonzero diagonal matrix element or not?
For example,
if the M contains any nonzero diagonal matrix element, Output: True.
if the M ...