![]() |
GHOST
1.1.2
General, Hybrid, and Optimized Sparse Toolkit
|
#include "ghost/config.h"#include <map>#include <math.h>#include <cstdlib>#include <vector>#include <numeric>#include <algorithm>#include <sstream>#include <iomanip>#include <complex>#include "ghost/types.h"#include "ghost/util.h"#include "ghost/locality.h"#include "ghost/sparsemat.h"
Functions | |
| ghost_error | ghost_sparsemat_registerrow (ghost_sparsemat *mat, ghost_gidx row, ghost_gidx *cols, ghost_lidx rowlen, ghost_lidx stride) |
| Store matrix information like bandwidth and nonzero distribution for a given matrix row. More... | |
| ghost_error | ghost_sparsemat_registerrow_finalize (ghost_sparsemat *mat) |
| Finalize the storing of matrix information like bandwidth and nonzero distribution. More... | |
| template<typename m_t > | |
| static ghost_error | ghost_sparsemat_string_tmpl (ghost_sparsemat *mat, char **str, int dense) |
| ghost_error | ghost_sparsemat_string (char **str, ghost_sparsemat *mat, int dense) |
| Creates a string of the sparsemat's contents. More... | |
Variables | |
| static map< ghost_sparsemat *, map< ghost_lidx, ghost_gidx > > | rowlengths |
| static vector< ghost_gidx > | lowerPerc90Dists |
| static vector< ghost_gidx > | upperPerc90Dists |
| ghost_error ghost_sparsemat_registerrow | ( | ghost_sparsemat * | mat, |
| ghost_gidx | row, | ||
| ghost_gidx * | col, | ||
| ghost_lidx | rowlen, | ||
| ghost_lidx | stride | ||
| ) |
Store matrix information like bandwidth and nonzero distribution for a given matrix row.
This function should be called at matrix creation for each row.
| [out] | mat | The matrix. |
| [in] | row | The row index. |
| [in] | col | The column indices of the row. |
| [in] | rowlen | The length of the row. |
| [in] | stride | The stride for the parameter col. |
| ghost_error ghost_sparsemat_registerrow_finalize | ( | ghost_sparsemat * | mat | ) |
Finalize the storing of matrix information like bandwidth and nonzero distribution.
This function should be after matrix creation. It finalizes the processing of information obtained in ghost_sparsemat_registerrow.
| [out] | mat | The matrix. |

|
static |

|
static |
|
static |
|
static |
1.8.6