Revision 1064, 0.5 kB
(checked in by mido, 14 years ago)
|
astyle applied all over the library
|
-
Property svn:eol-style set to
native
|
Rev | Line | |
---|
[580] | 1 | |
---|
| 2 | #include <itpp_ext.h> |
---|
| 3 | #include "UnitTest++.h" |
---|
[717] | 4 | #include "../mat_checks.h" |
---|
[580] | 5 | using namespace itpp; |
---|
| 6 | |
---|
[738] | 7 | TEST ( randun_test ) { |
---|
[1064] | 8 | // matlab output obtained by |
---|
| 9 | // >>clear all |
---|
| 10 | // >>randun(10); |
---|
| 11 | vec matlab_out = " 0.695964974209650, 0.083321541586575, 0.385149445564090, 0.206731595660901, 0.537928272754852, 0.960480190795139, 0.790566693893898, 0.054424274738144, 0.708785523990535, 0.558301708920999"; |
---|
[580] | 12 | |
---|
[1064] | 13 | //ASSUMING randun was not used yet! |
---|
| 14 | vec x = randun ( 10 ); |
---|
| 15 | CHECK_CLOSE ( matlab_out, x, 1e-6 ); |
---|
[722] | 16 | } |
---|