#include "Paso.h"
#include "SparseMatrix.h"
#include "TRILINOS.h"
#include "mmio.h"
Functions | |
static void | swap (index_t *, index_t *, double *, int, int) |
static void | q_sort (index_t *, index_t *, double *, int, int) |
Paso_SparseMatrix * | Paso_SparseMatrix_alloc (Paso_SparseMatrixType type, Paso_Pattern *pattern, int row_block_size, int col_block_size, const bool_t patternIsUnrolled) |
Paso_SparseMatrix * | Paso_SparseMatrix_getReference (Paso_SparseMatrix *in) |
void | Paso_SparseMatrix_free (Paso_SparseMatrix *in) |
Paso_SparseMatrix * | Paso_SparseMatrix_loadMM_toCSR (char *fileName_p) |
void | Paso_SparseMatrix_saveMM (Paso_SparseMatrix *A_p, char *fileName_p) |
Variables | |
static int | M |
static int | N |
static int | nz |
Paso_SparseMatrix* Paso_SparseMatrix_alloc | ( | Paso_SparseMatrixType | type, | |
Paso_Pattern * | pattern, | |||
int | row_block_size, | |||
int | col_block_size, | |||
const bool_t | patternIsUnrolled | |||
) |
References Paso_SparseMatrix::block_size, Paso_SparseMatrix::col_block_size, DBLE, FALSE, Paso_Pattern::len, Paso_SparseMatrix::len, MATRIX_FORMAT_BLK1, MATRIX_FORMAT_CSC, MATRIX_FORMAT_OFFSET1, MATRIX_FORMAT_SYM, MEMALLOC, Paso_SparseMatrix::numCols, Paso_Pattern::numInput, Paso_Pattern::numOutput, Paso_SparseMatrix::numRows, Paso_checkPtr(), Paso_noError(), Paso_Pattern_getReference(), Paso_Pattern_unrollBlocks(), Paso_resetError(), Paso_setError(), Paso_SparseMatrix_free(), Paso_SparseMatrix_setValues(), Paso_SparseMatrix::pattern, PATTERN_FORMAT_DEFAULT, PATTERN_FORMAT_OFFSET1, Paso_SparseMatrix::reference_counter, Paso_SparseMatrix::row_block_size, Paso_SparseMatrix::solver, Paso_SparseMatrix::type, Paso_Pattern::type, TYPE_ERROR, Paso_SparseMatrix::val, and XNOR.
Referenced by Paso_Solver_getAMG(), Paso_Solver_solveAMG(), Paso_SparseMatrix_getSubmatrix(), Paso_SparseMatrix_loadMM_toCSR(), and Paso_SystemMatrix_alloc().
void Paso_SparseMatrix_free | ( | Paso_SparseMatrix * | in | ) |
References MEMFREE, Paso_Pattern_free(), Paso_SparseMatrix::pattern, Paso_SparseMatrix::reference_counter, and Paso_SparseMatrix::val.
Referenced by Paso_Solver_AMG_free(), Paso_Solver_getAMG(), Paso_Solver_getRILU(), Paso_Solver_GS_free(), Paso_Solver_RILU_free(), Paso_Solver_solveAMG(), Paso_SparseMatrix_alloc(), and Paso_SystemMatrix_free().
Paso_SparseMatrix* Paso_SparseMatrix_getReference | ( | Paso_SparseMatrix * | in | ) |
References Paso_SparseMatrix::reference_counter.
Referenced by Paso_Solver_getAMG(), and Paso_Solver_getGS().
Paso_SparseMatrix* Paso_SparseMatrix_loadMM_toCSR | ( | char * | fileName_p | ) |
References IO_ERROR, M, MATRIX_FORMAT_DEFAULT, MEMALLOC, MEMFREE, MEMORY_ERROR, mm_is_general, mm_is_real, mm_is_sparse, mm_read_banner(), mm_read_mtx_crd_size(), N, nz, Paso_Pattern_alloc(), Paso_Pattern_free(), Paso_resetError(), Paso_setError(), Paso_SparseMatrix_alloc(), PATTERN_FORMAT_DEFAULT, q_sort(), TRUE, TYPE_ERROR, and Paso_SparseMatrix::val.
void Paso_SparseMatrix_saveMM | ( | Paso_SparseMatrix * | A_p, | |
char * | fileName_p | |||
) |
References Paso_SparseMatrix::col_block_size, Paso_Pattern::index, IO_ERROR, M, MATRIX_FORMAT_CSC, MATRIX_FORMAT_SYM, mm_initialize_typecode, mm_set_coordinate, mm_set_matrix, mm_set_real, mm_write_banner(), mm_write_mtx_crd_size(), N, Paso_SparseMatrix::numCols, Paso_SparseMatrix::numRows, Paso_setError(), Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SparseMatrix::row_block_size, Paso_SparseMatrix::type, TYPE_ERROR, and Paso_SparseMatrix::val.
Referenced by Paso_Solver_getAMG().
Referenced by q_sort(), and escript::DataBlocks2D::Swap().
int M [static] |
int N [static] |
Referenced by escript::Taipan::delete_array(), generate_HB(), mm_read_unsymmetric_sparse(), Paso_MPIInfo_setDistribution(), Paso_Pattern_reduceBandwidth(), Paso_RHS_loadMM_toCSR(), Paso_SparseMatrix_loadMM_toCSR(), Paso_SparseMatrix_saveHB_CSC(), Paso_SparseMatrix_saveMM(), Paso_SystemMatrix_loadMM_toCSC(), Paso_SystemMatrix_loadMM_toCSR(), Paso_SystemMatrix_saveMM(), and q_sort().
int nz [static] |