~ubuntu-branches/ubuntu/wily/octave/wily

« back to all changes in this revision

Viewing changes to src/DLD-FUNCTIONS/svd.cc

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-05-14 12:42:41 UTC
  • mfrom: (5.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20130514124241-dqow8bc0l4r3yj93
Tags: 3.6.4-2
* Adapt for Texinfo 5
  - add_info_dir_categories: use @dircategory in the patch
  - texinfo5.diff: new patch, fixes compatibility issues with Texinfo 5
* Upgrade to FLTK 1.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
423
423
 
424
424
  return SET_INTERNAL_VARIABLE_CHOICES (svd_driver, driver_names);
425
425
}
 
426
 
 
427
/*
 
428
%!test
 
429
%! A = [1+1i, 1-1i, 0; 0, 2, 0; 1i, 1i, 1+2i];
 
430
%! old_driver = svd_driver ("gesvd");
 
431
%! [U1, S1, V1] = svd (A);
 
432
%! svd_driver ("gesdd");
 
433
%! [U2, S2, V2] = svd (A);
 
434
%! assert (U1, U2, 5*eps);
 
435
%! assert (S1, S2, 5*eps);
 
436
%! assert (V1, V2, 5*eps);
 
437
%! svd_driver (old_driver);
 
438
*/