MAGMA  2.0.0
Matrix Algebra for GPU and Multicore Architectures
double precision

Functions

magma_int_t magma_dcuspaxpy (double *alpha, magma_d_matrix A, double *beta, magma_d_matrix B, magma_d_matrix *AB, magma_queue_t queue)
 This is an interface to the cuSPARSE routine csrgeam computing the sum of two sparse matrices stored in csr format: More...
 
magma_int_t magma_dcuspmm (magma_d_matrix A, magma_d_matrix B, magma_d_matrix *AB, magma_queue_t queue)
 This is an interface to the cuSPARSE routine csrmm computing the product of two sparse matrices stored in csr format. More...
 
magma_int_t magma_dcustomspmv (double alpha, magma_d_matrix x, double beta, magma_d_matrix y, magma_queue_t queue)
 This is an interface to any custom sparse matrix vector product. More...
 
magma_int_t magma_d_spmv (double alpha, magma_d_matrix A, magma_d_matrix x, double beta, magma_d_matrix y, magma_queue_t queue)
 For a given input matrix A and vectors x, y and scalars alpha, beta the wrapper determines the suitable SpMV computing y = alpha * A * x + beta * y. More...
 
magma_int_t magma_d_spmv_shift (double alpha, magma_d_matrix A, double lambda, magma_d_matrix x, double beta, magma_int_t offset, magma_int_t blocksize, magma_index_t *add_rows, magma_d_matrix y, magma_queue_t queue)
 For a given input matrix A and vectors x, y and scalars alpha, beta the wrapper determines the suitable SpMV computing y = alpha * ( A - lambda I ) * x + beta * y. More...
 
magma_int_t magma_d_spmm (double alpha, magma_d_matrix A, magma_d_matrix B, magma_d_matrix *C, magma_queue_t queue)
 For a given input matrix A and B and scalar alpha, the wrapper determines the suitable SpMV computing C = alpha * A * B. More...
 

Detailed Description

Function Documentation

magma_int_t magma_d_spmm ( double  alpha,
magma_d_matrix  A,
magma_d_matrix  B,
magma_d_matrix *  C,
magma_queue_t  queue 
)

For a given input matrix A and B and scalar alpha, the wrapper determines the suitable SpMV computing C = alpha * A * B.

Parameters
[in]alphadouble scalar alpha
[in]Amagma_d_matrix sparse matrix A
[in]Bmagma_d_matrix sparse matrix C
[out]Cmagma_d_matrix * outpur sparse matrix C
[in]queuemagma_queue_t Queue to execute in.
magma_int_t magma_d_spmv ( double  alpha,
magma_d_matrix  A,
magma_d_matrix  x,
double  beta,
magma_d_matrix  y,
magma_queue_t  queue 
)

For a given input matrix A and vectors x, y and scalars alpha, beta the wrapper determines the suitable SpMV computing y = alpha * A * x + beta * y.

Parameters
[in]alphadouble scalar alpha
[in]Amagma_d_matrix sparse matrix A
[in]xmagma_d_matrix input vector x
[in]betadouble scalar beta
[out]ymagma_d_matrix output vector y
[in]queuemagma_queue_t Queue to execute in.
magma_int_t magma_d_spmv_shift ( double  alpha,
magma_d_matrix  A,
double  lambda,
magma_d_matrix  x,
double  beta,
magma_int_t  offset,
magma_int_t  blocksize,
magma_index_t *  add_rows,
magma_d_matrix  y,
magma_queue_t  queue 
)

For a given input matrix A and vectors x, y and scalars alpha, beta the wrapper determines the suitable SpMV computing y = alpha * ( A - lambda I ) * x + beta * y.

Parameters
alphadouble scalar alpha
Amagma_d_matrix sparse matrix A
lambdadouble scalar lambda
xmagma_d_matrix input vector x
betadouble scalar beta
offsetmagma_int_t in case not the main diagonal is scaled
blocksizemagma_int_t in case of processing multiple vectors
add_rowsmagma_int_t* in case the matrixpowerskernel is used
ymagma_d_matrix output vector y
[in]queuemagma_queue_t Queue to execute in.
magma_int_t magma_dcuspaxpy ( double *  alpha,
magma_d_matrix  A,
double *  beta,
magma_d_matrix  B,
magma_d_matrix *  AB,
magma_queue_t  queue 
)

This is an interface to the cuSPARSE routine csrgeam computing the sum of two sparse matrices stored in csr format:

C = alpha * A + beta * B

Parameters
[in]alphadouble* scalar
[in]Amagma_d_matrix input matrix
[in]betadouble* scalar
[in]Bmagma_d_matrix input matrix
[out]ABmagma_d_matrix* output matrix AB = alpha * A + beta * B
[in]queuemagma_queue_t Queue to execute in.
magma_int_t magma_dcuspmm ( magma_d_matrix  A,
magma_d_matrix  B,
magma_d_matrix *  AB,
magma_queue_t  queue 
)

This is an interface to the cuSPARSE routine csrmm computing the product of two sparse matrices stored in csr format.

Parameters
[in]Amagma_d_matrix input matrix
[in]Bmagma_d_matrix input matrix
[out]ABmagma_d_matrix* output matrix AB = A * B
[in]queuemagma_queue_t Queue to execute in.
magma_int_t magma_dcustomspmv ( double  alpha,
magma_d_matrix  x,
double  beta,
magma_d_matrix  y,
magma_queue_t  queue 
)

This is an interface to any custom sparse matrix vector product.

It should compute y = alpha*FUNCTION(x) + beta*y The vectors are located on the device, the scalars on the CPU.

Parameters
[in]alphadouble scalar alpha
[in]xmagma_d_matrix input vector x
[in]betadouble scalar beta
[out]ymagma_d_matrix output vector y
[in]queuemagma_queue_t Queue to execute in.