Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

6.3 Servers

An eigenvalue decomposition server object encapsulates the algorithm used to construct the decomposition. Server objects are very useful tools in object-oriented design; they tend to be especially useful in numerical applications due to the large number of parameters and the complexity associated with numerical algorithms. You can think of a server object as representing the same sort of thing as a regular C or C++ function, except that it is much more flexible. By including the traditional parameter list as part of an object's state, you can use member functions to set only those parameters that concern you. You can use inheritance to modify parts of algorithms that you want changed. You can have several instantiations of a server to represent the same algorithm, but with different parameters.

One of the most common reasons for using an eigenvalue server is that you require a specific algorithm for the computation. For example, if you know that A is a positive definite matrix, you might want to use the server DoubleSymPDQREigServer, which uses a special variant of the QR algorithm especially designed for positive definite matrices. Here is an example program that does this:

//1Here an explicit server object is constructed. In the previous example program, we did not construct a server; a default server was used instead. This is a nice example of how objects can do their work behind the scenes in a layered, orthogonal design.
//2Here the server is used to compute the decomposition. By overloading the function call operator, using the server looks like a function call or a mathematical operator, depending on your point of view.

Here is a list of symmetric eigenvalue servers available in LAPACK.h++. Some of these are described in more detail in the following sections.

Table 7 -- Eigenvalue servers in LAPACK.h++

ServerFunction
SymEigServer
Abstract base class - commonalities implemented here
SymQRServer
Basic QR method - this is the default
SymPDQRServer
Positive definite QR - positive definite matrices only
SymRFQRServer
Root free QR method
SymRangeServer
Bisection method to compute eigenvalues in some range
SymSomeServer
Bisection method to compute selected eigenvalues


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.