Up: Function Details


5.2 Fills and random numbers

Zero fills

Syntax QDP_T_eq_zero(Type *r, subset);


Meaning r = 0


Type I, R, C, V, H, D, M, P

Constant fills

Syntax QDP_T_eq_t(Type *r, QLA_Type *a, subset);


Meaning r = a


Type I, R, C, V, H, D, M, P

Fill color matrix with constant times identity

Syntax QDP_M_eq_c(QDP_ColorMatrix *r, QLA_Complex *a, subset);


Meaning r = a I

Seeding the random number generator field from an integer field

Syntax QDP_S_eq_seed_i_I(QDP_RandomState *r, QLA_Int c, QDP_Int *a, subset);


Meaning seed r from constant c and field a

Uniform random number fills

Syntax QDP_R_eq_random_S(QDP_Real *r, QDP_RandomState *a, subset);


Meaning r = uniform random number in (0,1) from seed a

Gaussian random number fills

Syntax QDP_T_eq_gaussian_S(Type *r, QDP_RandomState *a, subset);


Meaning r = normal gaussian from seed a


Type R, C, V, H, D, M, P

Function fills

Syntax QDP_T_eq_func(Type *r, void (*func)(QLA_Type *dest, int coords[]), subset);


Meaning calls func(&r[x], x) for all coordinates x in subset


Type I, R, C, V, H, D, M, P

Function fills

Syntax QDP_T_eq_funci(Type *r, void (*func)(QLA_Type *dest, int index), subset);


Meaning calls func(&r[x], index(x)) for all coordinates x in subset


Type I, R, C, V, H, D, M, P