ScaMaC  0.8.2
A Scalable Matrix Collection
scamac_sparsemat_mvm.h
Go to the documentation of this file.
1 
8 #ifndef SCAMAC_SPARSEMAT_MVM_H
9 #define SCAMAC_SPARSEMAT_MVM_H
10 
11 
12 #include "scamac_vector.h"
13 #include "scamac_sparsemat.h"
14 #include <complex.h>
15 
16 
21 //ScamacErrorCode scamac_sparsemat_mvm(const ScamacMatrix *sm, const double *x, double *y, double alpha, double beta, double gamma);
22 ScamacErrorCode scamac_sparsemat_mvm(const ScamacMatrix *sm, const ScamacVector *x, ScamacVector *y, double alpha, double beta, double gamma);
23 
28 //ScamacErrorCode scamac_sparsemat_mvm_cplx(const ScamacMatrix *sm, const double complex *x, double complex *y,
29 // double complex alpha, double complex beta, double complex gamma);
30 ScamacErrorCode scamac_sparsemat_mvm_cplx(const ScamacMatrix *sm, const ScamacVector *x, ScamacVector *y,
31  double complex alpha, double complex beta, double complex gamma);
32 
33 #endif /* SCAMAC_SPARSEMAT_MVM_H */
Sparse matrix creation and manipulation.
ScamacErrorCode scamac_sparsemat_mvm_cplx(const ScamacMatrix *sm, const ScamacVector *x, ScamacVector *y, double complex alpha, double complex beta, double complex gamma)
Complex sparse matrix-vector multiplication: y = alpha SM x + beta y + gamma x.
Vector creation and manipulation.
ScamacErrorCode scamac_sparsemat_mvm(const ScamacMatrix *sm, const ScamacVector *x, ScamacVector *y, double alpha, double beta, double gamma)
Sparse matrix-vector multiplication: y = alpha SM x + beta y + gamma x.