Mercurial > octave
comparison scripts/linear-algebra/rank.m @ 3426:f8dde1807dee
[project @ 2000-01-13 08:40:00 by jwe]
author | jwe |
---|---|
date | Thu, 13 Jan 2000 08:40:53 +0000 |
parents | f16c2ce14886 |
children | c11d138d654a |
comparison
equal
deleted
inserted
replaced
3425:8625164a0a39 | 3426:f8dde1807dee |
---|---|
21 ## @deftypefn {Function File} {} rank (@var{a}, @var{tol}) | 21 ## @deftypefn {Function File} {} rank (@var{a}, @var{tol}) |
22 ## Compute the rank of @var{a}, using the singular value decomposition. | 22 ## Compute the rank of @var{a}, using the singular value decomposition. |
23 ## The rank is taken to be the number of singular values of @var{a} that | 23 ## The rank is taken to be the number of singular values of @var{a} that |
24 ## are greater than the specified tolerance @var{tol}. If the second | 24 ## are greater than the specified tolerance @var{tol}. If the second |
25 ## argument is omitted, it is taken to be | 25 ## argument is omitted, it is taken to be |
26 ## | 26 ## |
27 ## @example | 27 ## @example |
28 ## tol = max (size (@var{a})) * sigma (1) * eps; | 28 ## tol = max (size (@var{a})) * sigma (1) * eps; |
29 ## @end example | 29 ## @end example |
30 ## | 30 ## |
31 ## @noindent | 31 ## @noindent |
32 ## where @code{eps} is machine precision and @code{sigma} is the largest | 32 ## where @code{eps} is machine precision and @code{sigma} is the largest |
33 ## singular value of @var{a}. | 33 ## singular value of @var{a}. |
34 ## @end deftypefn | 34 ## @end deftypefn |
35 | 35 |