libflame  revision_anchor
Functions
bl1_rands.c File Reference

(r)

Functions

void bl1_srands (float *alpha)
 
void bl1_drands (double *alpha)
 
void bl1_crands (scomplex *alpha)
 
void bl1_zrands (dcomplex *alpha)
 

Function Documentation

◆ bl1_crands()

void bl1_crands ( scomplex alpha)

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

Referenced by bl1_crandmr(), and bl1_crandv().

24 {
25  bl1_srands( &(alpha->real) );
26  bl1_srands( &(alpha->imag) );
27 }
float real
Definition: blis_type_defs.h:134
void bl1_srands(float *alpha)
Definition: bl1_rands.c:13
float imag
Definition: blis_type_defs.h:134

◆ bl1_drands()

void bl1_drands ( double *  alpha)

Referenced by bl1_drandmr(), bl1_drandv(), and bl1_zrands().

19 {
20  *alpha = ( ( double ) rand() / ( ( double ) RAND_MAX / 2.0 ) ) - 1.0;
21 }

◆ bl1_srands()

void bl1_srands ( float *  alpha)

Referenced by bl1_crands(), bl1_srandmr(), and bl1_srandv().

14 {
15  *alpha = ( float ) ( ( double ) rand() / ( ( double ) RAND_MAX / 2.0F ) ) - 1.0F;
16 }

◆ bl1_zrands()

void bl1_zrands ( dcomplex alpha)

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

Referenced by bl1_zrandmr(), and bl1_zrandv().

30 {
31  bl1_drands( &(alpha->real) );
32  bl1_drands( &(alpha->imag) );
33 }
double imag
Definition: blis_type_defs.h:139
double real
Definition: blis_type_defs.h:139
void bl1_drands(double *alpha)
Definition: bl1_rands.c:18