Revision 722, 369 bytes
(checked in by mido, 15 years ago)
|
astyler run over all test sources
general_suite added
cleanup of \test directory finished
|
Line | |
---|
1 | #include "size_generator.h" |
---|
2 | #include "base/user_info.h" |
---|
3 | |
---|
4 | using namespace itpp; |
---|
5 | using bdm::UI; |
---|
6 | |
---|
7 | void size_generator::from_setting ( const Setting &set ) { |
---|
8 | UI::get ( sz, set, "size", UI::optional ); |
---|
9 | UI::get ( step, set, "step", UI::optional ); |
---|
10 | } |
---|
11 | |
---|
12 | mat size_generator::next() { |
---|
13 | mat A0 = randu ( sz, sz ); |
---|
14 | mat A = A0 * A0.T(); |
---|
15 | sz *= step; |
---|
16 | return A; |
---|
17 | } |
---|