rosser
Classic symmetric eigenvalue test problem
Description
A = rosser
returns the Rosser matrix in
double precision.
Examples
Generate the Rosser Matrix
rosser
returns the Rosser matrix.
rosser
ans = 8×8
611 196 -192 407 -8 -52 -49 29
196 899 113 -192 -71 -43 -8 -44
-192 113 899 196 61 49 8 52
407 -192 196 611 8 44 59 -23
-8 -71 61 8 411 -599 208 208
-52 -43 49 44 -599 411 208 208
-49 -8 8 59 208 208 99 -911
29 -44 52 -23 208 208 -911 99
Generate Matrix of Class ‘single’
Specify classname
as single
to return a Rosser matrix of that class.
Y = rosser('single')
Y = 8x8 single matrix
611 196 -192 407 -8 -52 -49 29
196 899 113 -192 -71 -43 -8 -44
-192 113 899 196 61 49 8 52
407 -192 196 611 8 44 59 -23
-8 -71 61 8 411 -599 208 208
-52 -43 49 44 -599 411 208 208
-49 -8 8 59 208 208 99 -911
29 -44 52 -23 208 208 -911 99
whos('Y')
Name Size Bytes Class Attributes Y 8x8 256 single
Input Arguments
classname
— Input class
'double'
(default) | 'single'
Input class, specified as 'double'
(default)
or 'single'
. rosser(C)
produces
a matrix of the specified class.
More About
Rosser Matrix
The Rosser matrix is a well known matrix used, for example, to evaluate eigenvalue algorithms. The matrix is 8-by-8 with integer elements. It has:
A double eigenvalue
Three nearly equal eigenvalues
Dominant eigenvalues of the opposite sign
A zero eigenvalue
A small, nonzero eigenvalue
Extended Capabilities
C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.
Thread-Based Environment
Run code in the background using MATLAB® backgroundPool
or accelerate code with Parallel Computing Toolbox™ ThreadPool
.
This function fully supports thread-based environments. For more information, see Run MATLAB Functions in Thread-Based Environment.
Version History
Introduced before R2006a
See Also
Comando MATLAB
Hai fatto clic su un collegamento che corrisponde a questo comando MATLAB:
Esegui il comando inserendolo nella finestra di comando MATLAB. I browser web non supportano i comandi MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)