MAGMA  2.3.0
Matrix Algebra for GPU and Multicore Architectures
 All Classes Files Functions Friends Groups Pages
Print matrix

Functions

void magma_cprint (magma_int_t m, magma_int_t n, const magmaFloatComplex *A, magma_int_t lda)
 magma_cprint prints a matrix that is located on the CPU host. More...
 
void magma_cprint_gpu (magma_int_t m, magma_int_t n, magmaFloatComplex_const_ptr dA, magma_int_t ldda, magma_queue_t queue)
 magma_cprint_gpu prints a matrix that is located on the GPU device. More...
 
void magma_dprint (magma_int_t m, magma_int_t n, const double *A, magma_int_t lda)
 magma_dprint prints a matrix that is located on the CPU host. More...
 
void magma_dprint_gpu (magma_int_t m, magma_int_t n, magmaDouble_const_ptr dA, magma_int_t ldda, magma_queue_t queue)
 magma_dprint_gpu prints a matrix that is located on the GPU device. More...
 
void magma_sprint (magma_int_t m, magma_int_t n, const float *A, magma_int_t lda)
 magma_sprint prints a matrix that is located on the CPU host. More...
 
void magma_sprint_gpu (magma_int_t m, magma_int_t n, magmaFloat_const_ptr dA, magma_int_t ldda, magma_queue_t queue)
 magma_sprint_gpu prints a matrix that is located on the GPU device. More...
 
void magma_zprint (magma_int_t m, magma_int_t n, const magmaDoubleComplex *A, magma_int_t lda)
 magma_zprint prints a matrix that is located on the CPU host. More...
 
void magma_zprint_gpu (magma_int_t m, magma_int_t n, magmaDoubleComplex_const_ptr dA, magma_int_t ldda, magma_queue_t queue)
 magma_zprint_gpu prints a matrix that is located on the GPU device. More...
 

Detailed Description

Function Documentation

void magma_cprint ( magma_int_t  m,
magma_int_t  n,
const magmaFloatComplex *  A,
magma_int_t  lda 
)

magma_cprint prints a matrix that is located on the CPU host.

The output is intended to be Matlab compatible, to be useful in debugging.

Parameters
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]ACOMPLEX array, dimension (LDA,N), on the CPU host. The M-by-N matrix to be printed.
[in]ldaINTEGER The leading dimension of the array A. LDA >= max(1,M).
void magma_cprint_gpu ( magma_int_t  m,
magma_int_t  n,
magmaFloatComplex_const_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

magma_cprint_gpu prints a matrix that is located on the GPU device.

Internally, it allocates CPU memory and copies the matrix to the CPU. The output is intended to be Matlab compatible, to be useful in debugging.

Parameters
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dACOMPLEX array, dimension (LDDA,N), on the GPU device. The M-by-N matrix to be printed.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magma_dprint ( magma_int_t  m,
magma_int_t  n,
const double *  A,
magma_int_t  lda 
)

magma_dprint prints a matrix that is located on the CPU host.

The output is intended to be Matlab compatible, to be useful in debugging.

Parameters
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]ADOUBLE PRECISION array, dimension (LDA,N), on the CPU host. The M-by-N matrix to be printed.
[in]ldaINTEGER The leading dimension of the array A. LDA >= max(1,M).
void magma_dprint_gpu ( magma_int_t  m,
magma_int_t  n,
magmaDouble_const_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

magma_dprint_gpu prints a matrix that is located on the GPU device.

Internally, it allocates CPU memory and copies the matrix to the CPU. The output is intended to be Matlab compatible, to be useful in debugging.

Parameters
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dADOUBLE PRECISION array, dimension (LDDA,N), on the GPU device. The M-by-N matrix to be printed.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magma_sprint ( magma_int_t  m,
magma_int_t  n,
const float *  A,
magma_int_t  lda 
)

magma_sprint prints a matrix that is located on the CPU host.

The output is intended to be Matlab compatible, to be useful in debugging.

Parameters
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]AREAL array, dimension (LDA,N), on the CPU host. The M-by-N matrix to be printed.
[in]ldaINTEGER The leading dimension of the array A. LDA >= max(1,M).
void magma_sprint_gpu ( magma_int_t  m,
magma_int_t  n,
magmaFloat_const_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

magma_sprint_gpu prints a matrix that is located on the GPU device.

Internally, it allocates CPU memory and copies the matrix to the CPU. The output is intended to be Matlab compatible, to be useful in debugging.

Parameters
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dAREAL array, dimension (LDDA,N), on the GPU device. The M-by-N matrix to be printed.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.
void magma_zprint ( magma_int_t  m,
magma_int_t  n,
const magmaDoubleComplex *  A,
magma_int_t  lda 
)

magma_zprint prints a matrix that is located on the CPU host.

The output is intended to be Matlab compatible, to be useful in debugging.

Parameters
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]ACOMPLEX_16 array, dimension (LDA,N), on the CPU host. The M-by-N matrix to be printed.
[in]ldaINTEGER The leading dimension of the array A. LDA >= max(1,M).
void magma_zprint_gpu ( magma_int_t  m,
magma_int_t  n,
magmaDoubleComplex_const_ptr  dA,
magma_int_t  ldda,
magma_queue_t  queue 
)

magma_zprint_gpu prints a matrix that is located on the GPU device.

Internally, it allocates CPU memory and copies the matrix to the CPU. The output is intended to be Matlab compatible, to be useful in debugging.

Parameters
[in]mINTEGER The number of rows of the matrix A. M >= 0.
[in]nINTEGER The number of columns of the matrix A. N >= 0.
[in]dACOMPLEX_16 array, dimension (LDDA,N), on the GPU device. The M-by-N matrix to be printed.
[in]lddaINTEGER The leading dimension of the array A. LDDA >= max(1,M).
[in]queuemagma_queue_t Queue to execute in.