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 15 years ago

Last modified 15 years ago

#846 closed defect (fixed)

Errors in MinimumResidualsSolve working with Matrix

Reported by: pgea@… Owned by: Víctor de Buen Remiro
Priority: high Milestone: Mantainance
Component: BSR Version:
Severity: critical Keywords:
Cc:

Description

La función MinimumResidualsSolve fracasa en su implementación para matrices (no virtuales).

Matrix mB = Diag(3, 1);
Matrix mC = Col(1,2,3);
Matrix mX1 = VMat2Mat(MinimumResidualsSolve(Mat2VMat(mB), Mat2VMat(mC)));
//> (1, 2, 3)
Matrix mX2 = MinimumResidualsSolve(mB, mC);
//> (?, ?, ?)

Matrix mB2 = SetMat([[ 
  [[2500, 1264, 1231]], 
  [[1264, 1264, 1623]],
  [[1231, 1623, 1231]] 
]]);
Matrix mC2 = Col(2021,1922,546);
Matrix mX3 = VMat2Mat(MinimumResidualsSolve(Mat2VMat(mB2), Mat2VMat(mC2)));
//> (0.69, -1.66, 1.93)
Matrix mX4 = MinimumResidualsSolve(mB2, mC2);
//> (222448.05, -390853.09, 111433.23)

Change History (3)

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

Milestone: Manteinance
Status: newaccepted

Recuerdo que corregí algo cuando hice la versión de VMatrix y seguro que olvidé trasladarlo a Matrix.

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

Resolution: fixed
Status: acceptedclosed

(In [1980]) Fixes #846

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

(In [1983]) Fixes #846
Fixes #754

Note: See TracTickets for help on using tickets.