IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2008, 2:22:28 PM (18 years ago)
Author:
eugene
Message:

test return status of psMatrixGJSolve

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psSparse.c

    r13991 r19501  
    450450        // square is modified by GJSolve, so re-copy each time
    451451        square = psImageCopy (square, border->Tjj, PS_TYPE_F64);
    452         psMatrixGJSolve (square, Go);
     452        if (!psMatrixGJSolve (square, Go)) {
     453            psError(PS_ERR_UNKNOWN, false, "Unable to solve for lower square.");
     454            psFree (dG);
     455            psFree (Go);
     456            psFree (dF);
     457            psFree (Fo);
     458            psFree (square);
     459            return false;
     460        }
    453461        yVec = psVectorCopy (yVec, Go, PS_TYPE_F32);
    454462
Note: See TracChangeset for help on using the changeset viewer.