In this section, we present several examples using the Rogue Wave Essential Math Module class library. All of the files needed to build and run the examples are located in the following directory:
buildspace\examples\math
Table 3 describes the Essential Math Module examples. If you are reading this manual online, you can click on the example to take you to its code in this chapter.
Filename | Link to Section | Example Description |
example1.cpp | Example 1 | Uses class RWMathVec<double> to do simple statistics with double precision vectors |
example2.cpp | Example 2 | Uses matrix classes to multiply a double precision matrix by a vector |
example3.cpp | Example 3 | Uses the complex FFT server class |
example4.cpp | Example 4 | Illustrates type conversion |
example5.cpp | Example 5 | Uses member functions saveOn() and restoreFrom() for data storage and retrieval |
example6.cpp | Example 6 | Shows how a CosVec class may be derived from the class RWMathVec<double> |
example7.cpp | Example 7 | Uses class RWGenFact<T> to do linear algebra with double precision matrices |
example8.cpp | Example 8 | Uses multiple inheritance to do runtime binding |
example9.cpp | Example 9 | Demonstrates how to convert a function into a function object, for use as the template parameter to the random number generator classes in Math.h++ |
example10.cpp | Example 10 | Shows how to use a user-defined type |
Copyright © Rogue Wave Software, Inc. All Rights Reserved.
The Rogue Wave name and logo, and SourcePro, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.