#include "Common.h"
#include "Pattern.h"
#include "Options.h"
#include "Paso.h"
Go to the source code of this file.
#define MATRIX_FORMAT_BLK1 4 |
#define MATRIX_FORMAT_CSC 1 |
Referenced by Finley_Assemble_addToSystemMatrix(), Paso_Solver(), Paso_SparseMatrix_alloc(), Paso_SparseMatrix_getSubmatrix(), Paso_SparseMatrix_saveMM(), Paso_SystemMatrix_alloc(), Paso_SystemMatrix_borrowNormalization(), Paso_SystemMatrix_getGlobalNumCols(), Paso_SystemMatrix_getGlobalNumRows(), Paso_SystemMatrix_getSystemMatrixTypeId(), Paso_SystemMatrix_loadMM_toCSC(), Paso_SystemMatrix_MatrixVector(), Paso_SystemMatrix_nullifyRows(), Paso_SystemMatrix_nullifyRowsAndCols(), Paso_SystemMatrix_rowSum(), Paso_SystemMatrix_saveHB(), Paso_SystemMatrix_saveMM(), and finley::SystemMatrixAdapter::Print_Matrix_Info().
#define MATRIX_FORMAT_DEFAULT 0 |
#define MATRIX_FORMAT_OFFSET1 8 |
Referenced by Finley_Assemble_addToSystemMatrix(), Paso_MKL(), Paso_MKL1(), Paso_Solver(), Paso_Solver_solveAMG(), Paso_SparseMatrix_alloc(), Paso_SparseMatrix_getSubmatrix(), Paso_SparseMatrix_nullifyRows_CSR(), Paso_SparseMatrix_nullifyRows_CSR_BLK1(), Paso_SparseMatrix_nullifyRowsAndCols_CSC(), Paso_SparseMatrix_nullifyRowsAndCols_CSC_BLK1(), Paso_SparseMatrix_nullifyRowsAndCols_CSR(), Paso_SparseMatrix_nullifyRowsAndCols_CSR_BLK1(), Paso_SparseMatrix_saveHB_CSC(), Paso_SparseMatrix_setValues(), Paso_SystemMatrix_alloc(), Paso_SystemMatrix_borrowNormalization(), Paso_SystemMatrix_getSystemMatrixTypeId(), Paso_SystemMatrix_MatrixVector(), Paso_SystemMatrix_rowSum(), Paso_UMFPACK(), and finley::SystemMatrixAdapter::Print_Matrix_Info().
#define MATRIX_FORMAT_SYM 2 |
Referenced by Paso_MKL(), Paso_MKL1(), Paso_MKL_free(), Paso_MKL_free1(), Paso_Solver(), Paso_SparseMatrix_alloc(), Paso_SparseMatrix_saveMM(), Paso_SystemMatrix_alloc(), Paso_SystemMatrix_borrowNormalization(), Paso_SystemMatrix_rowSum(), Paso_SystemMatrix_saveMM(), and finley::SystemMatrixAdapter::Print_Matrix_Info().
#define MATRIX_FORMAT_TRILINOS_CRS 16 |
typedef int Paso_SparseMatrixType |
void Paso_SparseMatrix_addAbsRow_CSR_OFFSET0 | ( | Paso_SparseMatrix * | , | |
double * | ||||
) |
void Paso_SparseMatrix_addRow_CSR_OFFSET0 | ( | Paso_SparseMatrix * | , | |
double * | ||||
) |
Paso_SparseMatrix* Paso_SparseMatrix_alloc | ( | Paso_SparseMatrixType | , | |
Paso_Pattern * | , | |||
dim_t | , | |||
dim_t | , | |||
const | bool_t | |||
) |
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_copy | ( | Paso_SparseMatrix * | , | |
double * | ||||
) |
void Paso_SparseMatrix_free | ( | Paso_SparseMatrix * | ) |
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 * | ) |
References Paso_SparseMatrix::reference_counter.
Referenced by Paso_Solver_getAMG(), and Paso_Solver_getGS().
Paso_SparseMatrix* Paso_SparseMatrix_getSubmatrix | ( | Paso_SparseMatrix * | A, | |
dim_t | , | |||
dim_t | , | |||
index_t * | , | |||
index_t * | ||||
) |
References Paso_SparseMatrix::block_size, Paso_SparseMatrix::col_block_size, Paso_Pattern::index, MATRIX_FORMAT_CSC, MATRIX_FORMAT_OFFSET1, Paso_copyShortDouble, Paso_noError(), Paso_Pattern_free(), Paso_Pattern_getSubpattern(), Paso_resetError(), Paso_setError(), Paso_SparseMatrix_alloc(), Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SparseMatrix::row_block_size, TRUE, Paso_SparseMatrix::type, TYPE_ERROR, and Paso_SparseMatrix::val.
Referenced by Paso_Solver_getAMG(), and Paso_Solver_getRILU().
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_MatrixVector_CSC_OFFSET0 | ( | const double | alpha, | |
const Paso_SparseMatrix * | A, | |||
const double * | in, | |||
const double | beta, | |||
double * | out | |||
) |
References ABS, Paso_SparseMatrix::block_size, Paso_SparseMatrix::col_block_size, Paso_Pattern::index, Paso_Pattern::numOutput, Paso_SparseMatrix::numRows, Paso_Pattern_isEmpty(), Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SparseMatrix::row_block_size, and Paso_SparseMatrix::val.
Referenced by Paso_SystemMatrix_MatrixVector().
void Paso_SparseMatrix_MatrixVector_CSC_OFFSET1 | ( | const double | alpha, | |
const Paso_SparseMatrix * | A, | |||
const double * | in, | |||
const double | beta, | |||
double * | out | |||
) |
References ABS, Paso_SparseMatrix::block_size, Paso_SparseMatrix::col_block_size, Paso_Pattern::index, Paso_Pattern::numOutput, Paso_SparseMatrix::numRows, Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SparseMatrix::row_block_size, and Paso_SparseMatrix::val.
Referenced by Paso_SystemMatrix_MatrixVector().
void Paso_SparseMatrix_MatrixVector_CSR_OFFSET0 | ( | const double | alpha, | |
const Paso_SparseMatrix * | A, | |||
const double * | in, | |||
const double | beta, | |||
double * | out | |||
) |
References Paso_SparseMatrix::col_block_size, Paso_Pattern::index, MAX, MIN, Paso_SparseMatrix::numRows, omp_get_max_threads(), Paso_SparseMatrix_MatrixVector_CSR_OFFSET0_stripe(), Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SparseMatrix::row_block_size, and Paso_SparseMatrix::val.
Referenced by Paso_Solver_solveAMG(), Paso_Solver_solveRILU(), and Paso_SystemMatrix_MatrixVector_CSR_OFFSET0().
void Paso_SparseMatrix_MatrixVector_CSR_OFFSET1 | ( | const double | alpha, | |
const Paso_SparseMatrix * | A, | |||
const double * | in, | |||
const double | beta, | |||
double * | out | |||
) |
References ABS, Paso_SparseMatrix::block_size, Paso_SparseMatrix::col_block_size, Paso_Pattern::index, Paso_Pattern::numOutput, Paso_SparseMatrix::numRows, Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SparseMatrix::row_block_size, and Paso_SparseMatrix::val.
Referenced by Paso_SystemMatrix_MatrixVector().
void Paso_SparseMatrix_nullifyRows_CSR_BLK1 | ( | Paso_SparseMatrix * | A, | |
double * | mask_row, | |||
double | main_diagonal_value | |||
) |
void Paso_SparseMatrix_nullifyRowsAndCols_CSC | ( | Paso_SparseMatrix * | A, | |
double * | mask_row, | |||
double * | mask_col, | |||
double | main_diagonal_value | |||
) |
References Paso_SparseMatrix::block_size, Paso_SparseMatrix::col_block_size, Paso_Pattern::index, MATRIX_FORMAT_OFFSET1, Paso_Pattern::numOutput, Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SparseMatrix::row_block_size, Paso_SparseMatrix::type, and Paso_SparseMatrix::val.
Referenced by Paso_SystemMatrix_nullifyRowsAndCols().
void Paso_SparseMatrix_nullifyRowsAndCols_CSC_BLK1 | ( | Paso_SparseMatrix * | A, | |
double * | mask_row, | |||
double * | mask_col, | |||
double | main_diagonal_value | |||
) |
void Paso_SparseMatrix_nullifyRowsAndCols_CSR | ( | Paso_SparseMatrix * | A, | |
double * | mask_row, | |||
double * | mask_col, | |||
double | main_diagonal_value | |||
) |
References Paso_SparseMatrix::block_size, Paso_SparseMatrix::col_block_size, Paso_Pattern::index, MATRIX_FORMAT_OFFSET1, Paso_Pattern::numOutput, Paso_SparseMatrix::pattern, Paso_Pattern::ptr, Paso_SparseMatrix::row_block_size, Paso_SparseMatrix::type, and Paso_SparseMatrix::val.
Referenced by Paso_SystemMatrix_nullifyRowsAndCols().
void Paso_SparseMatrix_nullifyRowsAndCols_CSR_BLK1 | ( | Paso_SparseMatrix * | A, | |
double * | mask_row, | |||
double * | mask_col, | |||
double | main_diagonal_value | |||
) |
void Paso_SparseMatrix_saveHB_CSC | ( | Paso_SparseMatrix * | , | |
FILE * | ||||
) |
References Paso_SparseMatrix::col_block_size, generate_HB(), Paso_Pattern::index, Paso_SparseMatrix::len, M, MATRIX_FORMAT_OFFSET1, MEMALLOC, MEMFREE, N, Paso_SparseMatrix::numCols, Paso_Pattern::numOutput, Paso_SparseMatrix::numRows, nz, 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_SystemMatrix_saveHB().
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().
void Paso_SparseMatrix_saveMM_CSC | ( | Paso_SparseMatrix * | , | |
FILE * | ||||
) |
void Paso_SparseMatrix_setValues | ( | Paso_SparseMatrix * | , | |
double | ||||
) |