close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 15 years ago

Closed 14 years ago

Last modified 14 years ago

#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 Víctor de Buen Remiro

Status: newaccepted

comment:2 Changed 15 years ago by Víctor de Buen Remiro

Milestone: Mantainance

comment:3 Changed 15 years ago by Víctor de Buen Remiro

(In [2519]) refs #960

comment:4 Changed 15 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: acceptedclosed

(In [2520]) Fixes #960

comment:5 Changed 15 years ago by Víctor de Buen Remiro

(In [2521]) Fixes #960

comment:6 Changed 15 years ago by Víctor de Buen Remiro

(In [2522]) Fixes #960

comment:7 Changed 15 years ago by Víctor de Buen Remiro

(In [2540]) Fixes #960

comment:8 Changed 14 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: closedreopened

Now, this expression returns the unknown value

Real Max(-1/0,-1/0);

comment:9 Changed 14 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: reopenedclosed

(In [3310]) Fixes #960

comment:10 Changed 14 years ago by Víctor de Buen Remiro

(In [3312]) Refs #960

Note: See TracTickets for help on using tickets.