IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 12695


Ignore:
Timestamp:
Mar 30, 2007, 10:25:50 AM (19 years ago)
Author:
rhl
Message:

singular matrix test was checking wrong vector

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel-1_0/psLib/src/math/psMatrix.c

    r12337 r12695  
    2222 *  @author Andy Becker, University of Washington (SVD).
    2323 *
    24  *  @version $Revision: 1.47.2.2 $ $Name: not supported by cvs2svn $
    25  *  @date $Date: 2007-03-08 23:21:39 $
     24 *  @version $Revision: 1.47.2.3 $ $Name: not supported by cvs2svn $
     25 *  @date $Date: 2007-03-30 20:25:50 $
    2626 *
    2727 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    348348    int solver_failed = gsl_linalg_LU_solve(a_gsl, perm_gsl, b_gsl, x_gsl);
    349349
    350     for (int i = 0; i < b->n && !solver_failed; i++) { // gsl_linalg_LU_solve doesn't always catch errors
    351         if (!gsl_finite(b_gsl->data[i])) {
     350    for (int i = 0; i < x_gsl->size && !solver_failed; i++) { // gsl_linalg_LU_solve doesn't always catch errors
     351        if (!gsl_finite(x_gsl->data[i])) {
    352352            solver_failed = 1;
    353353        }
Note: See TracChangeset for help on using the changeset viewer.