#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <sys/stat.h>
#include <limits.h>
#include "gslib.h"
#include "crs_amg_io.h"
Classes | |
struct | csr_mat |
struct | Q |
struct | crs_data |
struct | rid |
struct | id_data |
struct | gnz |
struct | find_id_map |
struct | find_id_data |
struct | find_id_work |
struct | rnz |
struct | labelled_rid |
Macros | |
#define | crs_setup PREFIXED_NAME(crs_amg_setup) |
#define | crs_solve PREFIXED_NAME(crs_amg_solve) |
#define | crs_stats PREFIXED_NAME(crs_amg_stats) |
#define | crs_free PREFIXED_NAME(crs_amg_free ) |
#define | AMG_BLOCK_ROWS 2400 |
#define | AMG_MAX_ROWS 12000 |
#define | rid_equal(a, b) ((a).p==(b).p && (a).i==(b).i) |
#define | nz_pos_equal(a, b) (rid_equal((a).i,(b).i) && rid_equal((a).j,(b).j)) |
#define | BUILD_LIST(k) |
Enumerations | |
enum | mat_order { row_major, col_major } |
enum | distr { row_distr, col_distr } |
Functions | |
void | crs_solve (double *x, struct crs_data *data, double *b) |
void | crs_stats (const struct crs_data *const data) |
struct crs_data * | crs_setup (uint n, const ulong *id, uint nz, const uint *Ai, const uint *Aj, const double *A, uint null_space, const struct comm *comm, const char *datafname, uint *ierr) |
void | crs_free (struct crs_data *data) |
#define AMG_BLOCK_ROWS 2400 |
#define AMG_MAX_ROWS 12000 |
#define BUILD_LIST | ( | k | ) |
#define crs_free PREFIXED_NAME(crs_amg_free ) |
#define crs_setup PREFIXED_NAME(crs_amg_setup) |
#define crs_solve PREFIXED_NAME(crs_amg_solve) |
#define crs_stats PREFIXED_NAME(crs_amg_stats) |
#define rid_equal | ( | a, | |
b | |||
) | ((a).p==(b).p && (a).i==(b).i) |
enum distr |
enum mat_order |
void crs_free | ( | struct crs_data * | data | ) |
struct crs_data* crs_setup | ( | uint | n, |
const ulong * | id, | ||
uint | nz, | ||
const uint * | Ai, | ||
const uint * | Aj, | ||
const double * | A, | ||
uint | null_space, | ||
const struct comm * | comm, | ||
const char * | datafname, | ||
uint * | ierr | ||
) |
void crs_solve | ( | double * | x, |
struct crs_data * | data, | ||
double * | b | ||
) |
void crs_stats | ( | const struct crs_data *const | data | ) |