Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
Марина Marina S's user avatar