ScaMaC
0.8.2
A Scalable Matrix Collection
|
generic ScaMaC generator routines More...
#include <complex.h>
#include "scamac_error.h"
#include "scamac_inttypes.h"
#include "scamac_defs.h"
#include <stdbool.h>
Go to the source code of this file.
Typedefs | |
typedef struct scamac_generator_st | ScamacGenerator |
Abstract generator object. | |
typedef struct scamac_workspace_st | ScamacWorkspace |
Abstract workspace object. | |
Functions | |
ScamacErrorCode | scamac_generator_check (const ScamacGenerator *gen, char **desc) |
Check the parameters of the generator. More... | |
ScamacErrorCode | scamac_generate_row (const ScamacGenerator *gen, ScamacWorkspace *ws, ScamacIdx irow, ScamacFlag flag, ScamacIdx *nzr, ScamacIdx *cind, double *val) |
Generate one row of a matrix. More... | |
ScamacErrorCode | scamac_alloc_cind_val (const ScamacGenerator *gen, ScamacFlag flag, ScamacIdx **cind, double **val) |
Allocate vector cind and val, for calls to scamac_generate_row(). More... | |
int | scamac_generator_query_coorddim (const ScamacGenerator *gen) |
generic ScaMaC generator routines
int scamac_generator_query_coorddim | ( | const ScamacGenerator * | gen | ) |
retrieve coordinates