How can i check the entire matrix zero or not
No products are associated with this question.
will be true if M is entirely 0
I am not sure if your (sum) is intended to convey anything? Are you asking whether the sum over M is 0? If so then,
Note, though, that this would be subject to round-off and cancellation problems; there are other techniques to use if you need to be concerned about those.