~ubuntu-branches/ubuntu/natty/suitesparse/natty

« back to all changes in this revision

Viewing changes to CXSparse_newfiles/MATLAB/CSparse/cs_updown_mex.c

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere, Rafael Laboissiere, Ondrej Certik
  • Date: 2008-02-21 14:46:50 UTC
  • mfrom: (1.1.2 upstream) (5.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080221144650-tgeppgj0t7s759i8
Tags: 3.1.0-3
[ Rafael Laboissiere ]
* Upload to unstable

[ Ondrej Certik ]
* XS-DM-Upload-Allowed: yes field added
* Ondrej Certik added to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
            Cvec->x = C->x + C->p [k] ;
59
59
            /* update/downdate */
60
60
            ok = cs_cl_updown (L, sigma, Cvec, parent) ;
 
61
            if (!ok) mexErrMsgTxt ("matrix is not positive definite") ;
61
62
        }
62
63
        /* return new L */ 
63
64
        pargout [0] = cs_cl_mex_put_sparse (&L) ;
99
100
            Cvec->x = C->x + C->p [k] ;
100
101
            /* update/downdate */
101
102
            ok = cs_dl_updown (L, sigma, Cvec, parent) ;
 
103
            if (!ok) mexErrMsgTxt ("matrix is not positive definite") ;
102
104
        }
103
105
        /* return new L */ 
104
106
        pargout [0] = cs_dl_mex_put_sparse (&L) ;
105
107
    }
106
 
 
107
 
    if (!ok) mexErrMsgTxt ("matrix is not positive definite") ;
108
108
}