Changeset 1064 for library/tests/stresssuite/additive_generator.h
- Timestamp:
- 06/09/10 14:00:40 (16 years ago)
- Files:
-
- 1 modified
-
library/tests/stresssuite/additive_generator.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
library/tests/stresssuite/additive_generator.h
r717 r1064 21 21 class additive_generator : public generator { 22 22 private: 23 itpp::mat a;24 itpp::mat v2;25 double lambda;23 itpp::mat a; 24 itpp::mat v2; 25 double lambda; 26 26 27 27 public: 28 additive_generator() : lambda ( 0.5 ) { }28 additive_generator() : lambda ( 0.5 ) { } 29 29 30 itpp::mat next();30 itpp::mat next(); 31 31 32 //! Load from structure with elements:33 //! \code34 //! { size = 7; // size (rows == cols) of the generated matrix35 //! lambda = 0.5; // weight of the added vector36 //! }37 //! \endcode38 //! size is mandatory, lambda optional (with default as shown).39 void from_setting ( const Setting &set );32 //! Load from structure with elements: 33 //! \code 34 //! { size = 7; // size (rows == cols) of the generated matrix 35 //! lambda = 0.5; // weight of the added vector 36 //! } 37 //! \endcode 38 //! size is mandatory, lambda optional (with default as shown). 39 void from_setting ( const Setting &set ); 40 40 }; 41 41
