Skip to content

Remove FIXME and special case handling for empty inputs in geomean.m #452

Description

@Sonu0305

Since Octave's sum() function now correctly and compatibly processes empty arrays and dimensions without throwing errors, this manual workaround is no longer required. We can safely remove the special if block for szx == [0,0].

Example: Before the change, the special case explicitly assigned an empty NaN array:

octave:1> geomean([])
ans = [](1x0) 

After removing the special case block, the underlying standard implementation natively produces the identical:

octave:1> geomean([])
ans = [](1x0)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions