Skip to content

accept logical indicators for double data in ismissing. - #537

Merged
pr0m1th3as merged 1 commit into
gnu-octave:mainfrom
AvanishSalunke:ismissing
Nov 1, 2026
Merged

pr0m1th3as merged 1 commit into
gnu-octave:mainfrom
AvanishSalunke:ismissing

Conversation

@AvanishSalunke

Copy link
Copy Markdown
Contributor

A logical indicator now works on double input, so true and false match the 1 and 0 entries. Other input types still reject logical indicators.

BEFORE:

octave:3> TF = ismissing ([1 0 2 1], true)
error: ismissing: 'indicator' and 'A' must have the same data type.
error: called from
    ismissing at line 100 column 5

AFTER:

octave:3> TF = ismissing ([1 0 2 1], true)
TF =

  1  0  0  1

MATLAB:

>> TF = ismissing ([1 0 2 1], true)


TF = 1×4 logical array
     1     0     0     1

@pr0m1th3as
pr0m1th3as merged commit 11b5c08 into gnu-octave:main Nov 1, 2026
8 checks passed
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