numere-org / NumeRe

Framework for numerical computations, data analysis and visualisation
https://www.numere.org
GNU General Public License v3.0
20 stars 7 forks source link

cnt() on empty array should return 0 #264

Open numere-bot opened 1 month ago

numere-bot commented 1 month ago

DESCRIPTION

Describe, what you observe or want to be changed: If the function cnt() is applied to an empty array (e.g. as cnt({})) it should return 0 instead of 1.

Describe, what you expect to happen:

cnt({}) == 0
cnt(void) == 0
cnt(c{}) == 0 ## if c{} is empty
cnt(t(:,1)) == 0 ## if column 1 of d() is empty

DEVS' SECTION

ANALYSIS

(Describe, what's the issue and which changes have to be made)

IMPLEMENTATION STEPS

(see also our Wiki for implementation guidelines)

DOCUMENTATION STEPS

(see also our Wiki for further information)

PULL REQUEST