#include "utils_tests.h"
int main ()
{
utils_init_random();
while (rand_times -- ) {
for ( i = 0; i < complex_vector->
length; i++ ) {
complex_vector->
norm[i] = ( 2. / RAND_MAX * random() - 1. );
complex_vector->
phas[i] = ( 2. / RAND_MAX * random() - 1. ) * M_PI;
}
}
for ( i = 0; i < complex_vector->
length; i++ ) {
assert( complex_vector->
norm[i] == 0. );
}
for ( i = 0; i < complex_vector->
length; i++ ) {
assert( complex_vector->
norm[i] == 1. );
}
return 0;
}