Skip to content

fix missing zval field for exact method in ranksum - #476

Merged
pr0m1th3as merged 1 commit into
gnu-octave:mainfrom
AvanishSalunke:ranksum
Sep 8, 2026
Merged

fix missing zval field for exact method in ranksum#476
pr0m1th3as merged 1 commit into
gnu-octave:mainfrom
AvanishSalunke:ranksum

Conversation

@AvanishSalunke

Copy link
Copy Markdown
Contributor

Fixed stats.zval throwing "structure has no member" when the exact or network-algorithm method is used. Now the field is always present, empty when not computed.

BEFORE:

octave:4> x = 1:8; y = 9:16;
octave:5> [p, h, stats] = ranksum(x, y);
octave:6> stats.zval
error: structure has no member 'zval'

AFTER:

octave:5> x = 1:8; y = 9:16;
octave:6> [p, h, stats] = ranksum(x, y);
octave:7> stats.zval
ans = [](0x0)

MATLAB:

>> X = 1:8; Y = 9:16;
>> [p, h, stats] = ranksum(x, y);
>> stats.zval

ans =

     []

@pr0m1th3as
pr0m1th3as merged commit bdc6805 into gnu-octave:main Sep 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants