root/library/tests/stresssuite/size_generator.cpp @ 1064

Revision 1064, 387 bytes (checked in by mido, 14 years ago)

astyle applied all over the library

RevLine 
[717]1#include "size_generator.h"
2#include "base/user_info.h"
3
4using namespace itpp;
5using bdm::UI;
6
[722]7void size_generator::from_setting ( const Setting &set ) {
[1064]8    UI::get ( sz, set, "size", UI::optional );
9    UI::get ( step, set, "step", UI::optional );
[717]10}
11
12mat size_generator::next() {
[1064]13    mat A0 = randu ( sz, sz );
14    mat A = A0 * A0.T();
15    sz *= step;
16    return A;
[717]17}
Note: See TracBrowser for help on using the browser.