libflame revision_anchor
Functions
FLA_random_number.c File Reference

(r)

Functions

float FLA_random_float ()
 
double FLA_random_double ()
 
scomplex FLA_random_scomplex ()
 
dcomplex FLA_random_dcomplex ()
 

Function Documentation

◆ FLA_random_dcomplex()

dcomplex FLA_random_dcomplex ( void  )
34{
35 dcomplex z;
36
39
40 return z;
41}
double FLA_random_double()
Definition FLA_random_number.c:18
Definition blis_type_defs.h:138
double real
Definition blis_type_defs.h:139
double imag
Definition blis_type_defs.h:139

References FLA_random_double(), dcomplex::imag, and dcomplex::real.

◆ FLA_random_double()

double FLA_random_double ( void  )
19{
20 return ( ( double ) rand() / ( double ) RAND_MAX ) * 2.0 - 1.0;
21}
int i
Definition bl1_axmyv2.c:145

References i.

Referenced by FLA_random_dcomplex().

◆ FLA_random_float()

float FLA_random_float ( void  )
14{
15 return ( float )( ( ( double ) rand() / ( double ) RAND_MAX ) * 2.0 - 1.0 );
16}

References i.

Referenced by FLA_random_scomplex().

◆ FLA_random_scomplex()

scomplex FLA_random_scomplex ( void  )
24{
25 scomplex z;
26
29
30 return z;
31}
float FLA_random_float()
Definition FLA_random_number.c:13
Definition blis_type_defs.h:133
float imag
Definition blis_type_defs.h:134
float real
Definition blis_type_defs.h:134

References FLA_random_float(), scomplex::imag, and scomplex::real.