Up: Function Details


5.3 Unary Operations

Bitwise not

Syntax QDP_I_eq_not_I(QDP_Int *r, QDP_Int *a, subset);


Meaning r = not(a)

Elementary unary functions on reals

Syntax QDP_R_eq_func_R(QDP_Real *r, QDP_Real *a, subset);


Meaning r = func(a)


func sin, cos, tan, asin, acos, atan, sqrt, fabs, exp, log, sign, ceil, floor, sinh, cosh, tanh, log10

Elementary unary functions real to complex

Syntax QDP_C_eq_cexpi_R(QDP_Complex *r, QDP_Real *a, subset);


Meaning r = exp(ia)

Elementary unary functions complex to real

Syntax QDP_R_eq_func_C(QDP_Real *r, QDP_Complex *a, subset);


Meaning r = func(a)


func norm, arg

Elementary unary functions on complex values

Syntax QDP_C_eq_func_C(QDP_Complex *r, QDP_Complex *a, subset);


Meaning r = func(a)


func cexp, csqrt, clog

Copying

Syntax QDP_T_eq_T(Type *r, Type *a, subset);
QDP_T_veq_T(Type *r[], Type *a[], subset, int n);


Meaning r = a


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

Incrementing

Syntax QDP_T_eqop_T(Type *r, Type *a, subset);
QDP_T_veqop_T(Type *r[], Type *a[], subset, int n);


Meaning r eqop a


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


eqop eqm, peq, meq

Transpose

Syntax QDP_T_eqop_transpose_T(Type *r, Type *a, subset);


Meaning r eqop transpose(a)


Type M, P


eqop eq, peq, meq, eqm

Complex conjugate

Syntax QDP_T_eqop_conj_T(Type *r, Type *a, subset);


Meaning r eqop conjugate(a)


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


eqop eq, peq, meq, eqm

Hermitian conjugate

Syntax QDP_T_eqop_Ta(Type *r, Type *a, subset);


Meaning r eqop adjoint(a)


Type C, M, P


eqop eq, peq, meq, eqm

Local squared norm: uniform precision

Syntax QDP_R_eq_norm2_T(QDP_Real *r, Type *a, subset);


Meaning r = norm2(a)


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