Dear, All,
just wanted to confirm with you whether there exists a built-in function in Mata to calculate the equivalent of python's count_nonzero(), which reports the number (count) of the elements of a matrix that are different from zero.
No problem implementing this with nested loops. Just looking for a built-in function if available.
Thank you, Sergiy
0 Response to Equivalent of count_nonzero()
Post a Comment