LASs - Linear Algebra Routines on OmpSs
1.0.0
LASs
|
LASs-DSS dspmv routine. More...
#include "../include/lass.h"
Go to the source code of this file.
Functions | |
void | dspmvseq (int M, int N, double ALPHA, const double *VAL_A, const int *ROW_PTR_A, const int *COL_IND_A, const double *X, double BETA, double *Y) |
LASs-DSS dspmv routine.
LASs-DSSs is a software package provided by: Barcelona Supercomputing Center - Centro Nacional de Supercomputacion
Definition in file dspmv.c.
void dspmvseq | ( | int | M, |
int | N, | ||
double | ALPHA, | ||
const double * | VAL_A, | ||
const int * | ROW_PTR_A, | ||
const int * | COL_IND_A, | ||
const double * | X, | ||
double | BETA, | ||
double * | Y | ||
) |
Performs the sparse matrix-vector operation:
Y = ALPHA * A * X + BETA * Y
where ALPHA and BETA are scalars, X and Y are vectors, and A is a sparse matrix stored in thhe next three vectors VAL_A, COL_IND_A and ROW_PTR_A according to CSR format.
[in] | M | int. M specifies the number of rows of A. |
[in] | N | int. N specifies the number of columns of A. |
[in] | ALPHA | double. |
[in] | VAL_A | double *. VAL_A is a pointer to a vector which specifies the non-zero values of the original matrix A. |
[in] | COL_IND_A | unsigned int *. COL_IND_A is a pointer to a vector which specifies the column of each value of A in the original matrix. |
[in] | ROW_PTR_A | unsigned int *. ROW_PTR_A is a pointer to a vector which specifies the number of values that A contains in each row of the original matrix. |
[in] | X | double *. X is a pointer to a vector of dimension N. |
[in] | BETA | double . |
[in,out] | Y | double *. Y is a pointer to a vector of dimension M. On exit, Y is overwritten by the sparse matrix-vector result. |
Success | sucessful exit |
NoSuccess | unsucessful exit |
Definition at line 84 of file dspmv.c.