ScaMaC
0.8.2
A Scalable Matrix Collection
|
Sparse matrix creation and manipulation. More...
#include "scamac_vector.h"
#include "scamac_generator.h"
#include "scamac_sparsemat.h"
#include <complex.h>
Go to the source code of this file.
Functions | |
ScamacErrorCode | scamac_matop_from_generator (const ScamacGenerator *gen, ScamacMatop **sm) |
Create matop. More... | |
ScamacErrorCode | scamac_matop_from_matrix (const ScamacMatrix *mat, ScamacMatop **sm) |
Obtain matop from ScaMaC sparse matrix. | |
ScamacErrorCode | scamac_matop_free (ScamacMatop *sm) |
Free allocated matop. | |
ScamacErrorCode | scamac_matop_mvm (const ScamacMatop *sm, const ScamacVector *x, ScamacVector *y, double alpha, double beta, double gamma) |
Sparse matrix-vector multiplication: y = alpha SM x + beta y + gamma x. More... | |
ScamacErrorCode | scamac_matop_mvm_cplx (const ScamacMatop *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. More... | |
Sparse matrix creation and manipulation.
ScamacErrorCode scamac_matop_from_generator | ( | const ScamacGenerator * | gen, |
ScamacMatop ** | sm | ||
) |
Create matop.
Obtain matop from ScaMaC generator
ScamacErrorCode scamac_matop_mvm | ( | const ScamacMatop * | sm, |
const ScamacVector * | x, | ||
ScamacVector * | y, | ||
double | alpha, | ||
double | beta, | ||
double | gamma | ||
) |
Sparse matrix-vector multiplication: y = alpha SM x + beta y + gamma x.
ScamacErrorCode scamac_matop_mvm_cplx | ( | const ScamacMatop * | 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.