#960 closed defect (fixed)
Inconsistent behaviour of functions MatMin, MatMax, VMatMin, VMatMax with matrices containing unknown values
Reported by: | lcereceda | Owned by: | Víctor de Buen Remiro |
---|---|---|---|
Priority: | high | Milestone: | Mantainance |
Component: | Kernel | Version: | 2.0.1 |
Severity: | critical | Keywords: | MatMin, MatMax, VMatMin, VMatMax |
Cc: |
Description
When dealing with matrices containing unknown values, the behaviour of the functions MatMin, MatMax, VMatMin, VMatMax is inconsistent.
For
Matrix a = Col( 1, ?, 2 ); Real a.min = MatMin(a); Real a.max = MatMax(a); VMatrix va = Mat2VMat(a); Real va.min = VMatMin(va); Real va.max = VMatMax(va);
we obtain real numbers, while for
Matrix b = Col( ?, 1, 2 ); Real b.min = MatMin(b); Real b.max = MatMax(b); VMatrix vb = Mat2VMat(b); Real vb.min = VMatMin(vb); Real vb.max = VMatMax(vb);
we obtain unknowns.
Change History (10)
comment:1 Changed 15 years ago by
Status: | new → accepted |
---|
comment:2 Changed 15 years ago by
Milestone: | → Mantainance |
---|
comment:3 Changed 15 years ago by
comment:4 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
comment:8 Changed 14 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
Now, this expression returns the unknown value
Real Max(-1/0,-1/0);
comment:9 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note: See
TracTickets for help on using
tickets.
(In [2519]) refs #960