Mercurial > hg > octave-lyh
comparison src/DLD-FUNCTIONS/luinc.cc @ 14501:60e5cf354d80
Update %!tests in DLD-FUNCTIONS/ directory with Octave coding conventions.
* __contourc__.cc, __delaunayn__.cc, __dispatch__.cc, __dsearchn__.cc,
__fltk_uigetfile__.cc, __glpk__.cc, __lin_interpn__.cc, __magick_read__.cc,
__pchip_deriv__.cc, __qp__.cc, __voronoi__.cc, besselj.cc, betainc.cc,
bsxfun.cc, cellfun.cc, chol.cc, conv2.cc, convhulln.cc, dassl.cc, det.cc,
dlmread.cc, dmperm.cc, dot.cc, eig.cc, eigs.cc, fft.cc, fft2.cc, filter.cc,
find.cc, gammainc.cc, gcd.cc, givens.cc, hess.cc, hex2num.cc, inv.cc, kron.cc,
lookup.cc, lsode.cc, lu.cc, luinc.cc, matrix_type.cc, max.cc, mgorth.cc,
nproc.cc, qr.cc, quad.cc, quadcc.cc, qz.cc, rand.cc, rcond.cc, regexp.cc,
schur.cc, spparms.cc, sqrtm.cc, str2double.cc, strfind.cc, sub2ind.cc, svd.cc,
syl.cc, time.cc, tril.cc, tsearch.cc: Update %!tests in DLD-FUNCTIONS/
directory with Octave coding conventions.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 27 Mar 2012 22:46:45 -0700 |
parents | 8de863b7126b |
children | 5ae9f0f77635 |
comparison
equal
deleted
inserted
replaced
14498:36cfbd23fe9f | 14501:60e5cf354d80 |
---|---|
363 | 363 |
364 return retval; | 364 return retval; |
365 } | 365 } |
366 | 366 |
367 /* | 367 /* |
368 | |
369 %!testif HAVE_UMFPACK | 368 %!testif HAVE_UMFPACK |
370 %! a=sparse([1,2,0,0;0,1,2,0;1e-14,0,3,0;0,0,0,1]); | 369 %! a = sparse ([1,2,0,0;0,1,2,0;1e-14,0,3,0;0,0,0,1]); |
371 %! [l,u]=luinc(a,1e-10); | 370 %! [l,u] = luinc (a, 1e-10); |
372 %! assert(l*u, sparse([1,2,0,0;0,1,2,0;0,0,3,0;0,0,0,1]),1e-10); | 371 %! assert (l*u, sparse ([1,2,0,0;0,1,2,0;0,0,3,0;0,0,0,1]), 1e-10); |
373 %! opts.droptol=1e-10; | 372 %! opts.droptol = 1e-10; |
374 %! [l,u]=luinc(a,opts); | 373 %! [l,u] = luinc (a, opts); |
375 %! assert(l*u, sparse([1,2,0,0;0,1,2,0;0,0,3,0;0,0,0,1]),1e-10); | 374 %! assert (l*u, sparse ([1,2,0,0;0,1,2,0;0,0,3,0;0,0,0,1]), 1e-10); |
376 | 375 |
377 %!testif HAVE_UMFPACK | 376 %!testif HAVE_UMFPACK |
378 %! a=sparse([1i,2,0,0;0,1,2,0;1e-14,0,3,0;0,0,0,1]); | 377 %! a = sparse ([1i,2,0,0;0,1,2,0;1e-14,0,3,0;0,0,0,1]); |
379 %! [l,u]=luinc(a,1e-10); | 378 %! [l,u] = luinc (a, 1e-10); |
380 %! assert(l*u, sparse([1i,2,0,0;0,1,2,0;0,0,3,0;0,0,0,1]),1e-10); | 379 %! assert (l*u, sparse ([1i,2,0,0;0,1,2,0;0,0,3,0;0,0,0,1]), 1e-10); |
381 %! opts.droptol=1e-10; | 380 %! opts.droptol = 1e-10; |
382 %! [l,u]=luinc(a,opts); | 381 %! [l,u] = luinc (a, opts); |
383 %! assert(l*u, sparse([1i,2,0,0;0,1,2,0;0,0,3,0;0,0,0,1]),1e-10); | 382 %! assert (l*u, sparse ([1i,2,0,0;0,1,2,0;0,0,3,0;0,0,0,1]), 1e-10); |
384 | |
385 */ | 383 */ |