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 name of the example to take you to its code in this chapter.
Filename | Example Description |
example1.cpp | Uses class RWMathVec<double> to do simple statistics with double precision vectors |
example2.cpp | Uses matrix classes to multiply a double precision matrix by a vector |
example3.cpp | Uses the complex FFT server class |
example4.cpp | Illustrates type conversion |
example5.cpp | Uses member functions saveOn() and restoreFrom() for data storage and retrieval |
example6.cpp | Shows how a CosVec class may be derived from the class RWMathVec<double> |
example7.cpp | Uses class RWGenFact<T> to do linear algebra with double precision matrices |
example8.cpp | Uses multiple inheritance to do runtime binding |
example9.cpp | 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++ |
exampl10.cpp | Shows how to use a user-defined type |
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.