MAGMA  magma-1.4.0 Matrix Algebra on GPU and Multicore Architectures
testing_zutil.cpp File Reference
`#include "testings.h"`
Include dependency graph for testing_zutil.cpp:

Go to the source code of this file.

## Macros

#define A(i, j)   A[i + j*lda]

## Functions

void magma_zmake_hermitian (magma_int_t N, magmaDoubleComplex *A, magma_int_t lda)

void magma_zmake_hpd (magma_int_t N, magmaDoubleComplex *A, magma_int_t lda)

## Macro Definition Documentation

 #define A ( i, j ) A[i + j*lda]

Definition at line 17 of file testing_zutil.cpp.

## Function Documentation

 void magma_zmake_hermitian ( magma_int_t N, magmaDoubleComplex * A, magma_int_t lda )

Definition at line 24 of file testing_zutil.cpp.

References A, MAGMA_Z_CNJG, MAGMA_Z_MAKE, and MAGMA_Z_REAL.

25 {
26  magma_int_t i, j;
27  for( i=0; i<N; ++i ) {
28  A(i,i) = MAGMA_Z_MAKE( MAGMA_Z_REAL( A(i,i) ), 0. );
29  for( j=0; j<i; ++j ) {
30  A(j,i) = MAGMA_Z_CNJG( A(i,j) );
31  }
32  }
33 }
#define MAGMA_Z_MAKE(r, i)
Definition: magma.h:123
int magma_int_t
Definition: magmablas.h:12
#define A(i, j)
#define MAGMA_Z_CNJG(v, t)
Definition: magma.h:120
#define MAGMA_Z_REAL(a)
Definition: magma.h:124

Here is the caller graph for this function:

 void magma_zmake_hpd ( magma_int_t N, magmaDoubleComplex * A, magma_int_t lda )

Definition at line 41 of file testing_zutil.cpp.

References A, MAGMA_Z_CNJG, MAGMA_Z_MAKE, and MAGMA_Z_REAL.

42 {
43  magma_int_t i, j;
44  for( i=0; i<N; ++i ) {
45  A(i,i) = MAGMA_Z_MAKE( MAGMA_Z_REAL( A(i,i) ) + N, 0. );
46  for( j=0; j<i; ++j ) {
47  A(j,i) = MAGMA_Z_CNJG( A(i,j) );
48  }
49  }
50 }
#define MAGMA_Z_MAKE(r, i)
Definition: magma.h:123
int magma_int_t
Definition: magmablas.h:12
#define A(i, j)
#define MAGMA_Z_CNJG(v, t)
Definition: magma.h:120
#define MAGMA_Z_REAL(a)
Definition: magma.h:124

Here is the caller graph for this function: