SCALAPACK 2.2.2
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ PB_Cconjg()

void PB_Cconjg ( PBTYP_T TYPE,
char *  ALPHA,
char *  CALPHA 
)

Definition at line 22 of file PB_Cconjg.c.

29{
30/*
31* Purpose
32* =======
33*
34* PB_Cconjg conjugates of the scalar alpha.
35*
36* Arguments
37* =========
38*
39* TYPE (local input) pointer to a PBTYP_T structure
40* On entry, TYPE is a pointer to a structure of type PBTYP_T,
41* that contains type information (See pblas.h).
42*
43* ALPHA (local input) pointer to CHAR
44* On entry, ALPHA specifies the scalar alpha.
45*
46* CALPHA (local output) pointer to CHAR
47* On exit, CALPHA contains the conjugate of the scalar alpha.
48*
49* -- Written on April 1, 1998 by
50* Antoine Petitet, University of Tennessee, Knoxville 37996, USA.
51*
52* ---------------------------------------------------------------------
53*/
54/* ..
55* .. Executable Statements ..
56*
57*/
58 switch( TYPE->type )
59 {
60 case SCPLX:
61 ((float*)(CALPHA))[REAL_PART] = ((float*)(ALPHA))[REAL_PART];
62 ((float*)(CALPHA))[IMAG_PART] = -((float*)(ALPHA))[IMAG_PART];
63 break;
64 case DCPLX:
65 ((double*)(CALPHA))[REAL_PART] = ((double*)(ALPHA))[REAL_PART];
66 ((double*)(CALPHA))[IMAG_PART] = -((double*)(ALPHA))[IMAG_PART];
67 break;
68 case SREAL:
69 ((float*)(CALPHA))[REAL_PART] = ((float*)(ALPHA))[REAL_PART];
70 break;
71 case DREAL:
72 ((double*)(CALPHA))[REAL_PART] = ((double*)(ALPHA))[REAL_PART];
73 break;
74 case INT:
75 *((Int*)(CALPHA)) = *((Int*)(ALPHA));
76 break;
77 default: ;
78 }
79/*
80* End of PB_Cconjg
81*/
82}
#define Int
Definition Bconfig.h:22
#define SREAL
Definition pblas.h:473
#define REAL_PART
Definition pblas.h:139
#define SCPLX
Definition pblas.h:475
#define DREAL
Definition pblas.h:474
#define DCPLX
Definition pblas.h:476
#define IMAG_PART
Definition pblas.h:140
#define INT
Definition pblas.h:472
#define TYPE
Definition clamov.c:7