root/library/tests/size_generator.h @ 706

Revision 706, 0.9 kB (checked in by smidl, 15 years ago)

eol-native

  • Property svn:eol-style set to native
Line 
1/*!
2  \file
3  \brief Generating stress test agenda from random data.
4  \author Vaclav Barta.
5
6  -----------------------------------
7  BDM++ - C++ library for Bayesian Decision Making under Uncertainty
8
9  Using IT++ for numerical operations
10  -----------------------------------
11*/
12
13#ifndef SIZE_GENERATOR_H
14#define SIZE_GENERATOR_H
15
16#include "itpp_ext.h"
17#include "generator.h"
18
19/*! Generates progressively larger random matrices.
20 */
21class size_generator : public generator {
22private:
23        int step;
24        int sz;
25
26public:
27        size_generator() : step ( 7 ), sz ( step ) { }
28
29        itpp::mat next();
30
31        //! Load from structure with elements:
32        //!  \code
33        //! { size = 7; // size (rows == cols) of the first generated matrix
34        //!   step = 7; // how many times to increase the generated matrix in every iteration
35        //! }
36        //! \endcode
37        //! Both elements are optional, with defaults as shown.
38        void from_setting ( const Setting &set );
39};
40
41#endif
Note: See TracBrowser for help on using the browser.