Returns the number of the nonzero elements.
More...
Returns the number of the nonzero elements.
Gets the number of non-zero elements in the array.
float f[] = {1,2,0,4};
printf("%d\n",a.nonzeros());
Returns the number of the nonzero elements.
Gets the number of non-zero elements in the array.
float f[] = {1,2,0,4};
printf("%d\n",a.nonzeros());
- Returns
- The number of non-zero elements in an array.
- See Also
- count()