Skip to content

Matrices and disabling showTypeWarnings #1364

@somiaj

Description

@somiaj

I am unable to disable showTypeWarnings for matrices. I have matrices that sometimes are formulas and sometimes are not, and I want to disable the type warnings with non formula matrices. Consider the following MWE.

DOCUMENT();
loadMacros(qw{PGstandard.pl PGML.pl});
Context('Matrix');
$M = Matrix([[1], [2], [3]])->cmp(showTypeWarnings => 0);
BEGIN_PGML
[_]*{$M}
END_PGML
ENDDOCUMENT();

If you enter in the matrix [[x], [x], [x]], you get warnings that the answer isn't a number. My understanding is showTypeWarnings => 0 should disable that message, but it did not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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