Skip to content

setQuESTMaxNumReportedItems(1,1) does not show ellipsis when ellipting #810

Description

@TysonRayJones

Calling setQuESTMaxNumReportedItems(1,1) causes reporting functions, like reportCompMatr, to only ever show a single element (the top-left). This results in no ellipsis which ordinarily separates the left/right (and/or top/down) non-ellipted regions. This gives the incorrect impression no ellipsis has occurred.

For example

    CompMatr1 matr = getInlineCompMatr1({{1,2},{3,4}});
    reportCompMatr1(matr);
    setQuESTMaxNumReportedItems(1,1);
    reportCompMatr1(matr);

outputs

CompMatr1 (1 qubit, 2x2 qcomps, 80 bytes):
    1  2  
    3  4  

CompMatr1 (1 qubit, 2x2 qcomps, 80 bytes):
    1

where the final output is expected to have instead been

CompMatr1 (1 qubit, 2x2 qcomps, 80 bytes):
    1  …
    ⋮

Of course this is a profanely unimportant edge-case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions