#include "Paso.h"
#include "Pattern.h"
Functions | |
Paso_Pattern * | Paso_Pattern_alloc (int type, dim_t numOutput, dim_t numInput, index_t *ptr, index_t *index) |
Paso_Pattern * | Paso_Pattern_getReference (Paso_Pattern *in) |
void | Paso_Pattern_free (Paso_Pattern *in) |
int | Paso_comparIndex (const void *index1, const void *index2) |
bool_t | Paso_Pattern_isEmpty (Paso_Pattern *in) |
Paso_Pattern * | Paso_Pattern_multiply (int type, Paso_Pattern *A, Paso_Pattern *B) |
Paso_Pattern * | Paso_Pattern_binop (int type, Paso_Pattern *A, Paso_Pattern *B) |
void | Paso_IndexList_insertIndex (Paso_IndexList *in, index_t index) |
dim_t | Paso_IndexList_count (Paso_IndexList *in, index_t range_min, index_t range_max) |
void | Paso_IndexList_toArray (Paso_IndexList *in, index_t *array, index_t range_min, index_t range_max, index_t index_offset) |
void | Paso_IndexList_free (Paso_IndexList *in) |
Paso_Pattern * | Paso_IndexList_createPattern (dim_t n0, dim_t n, Paso_IndexList *index_list, index_t range_min, index_t range_max, index_t index_offset) |
int Paso_comparIndex | ( | const void * | index1, | |
const void * | index2 | |||
) |
dim_t Paso_IndexList_count | ( | Paso_IndexList * | in, | |
index_t | range_min, | |||
index_t | range_max | |||
) |
References Paso_IndexList::extension, Paso_IndexList::index, Paso_IndexList::n, and Paso_IndexList_count().
Referenced by Paso_IndexList_count(), and Paso_IndexList_createPattern().
Paso_Pattern* Paso_IndexList_createPattern | ( | dim_t | n0, | |
dim_t | n, | |||
Paso_IndexList * | index_list, | |||
index_t | range_min, | |||
index_t | range_max, | |||
index_t | index_offset | |||
) |
void Paso_IndexList_free | ( | Paso_IndexList * | in | ) |
References Paso_IndexList::extension, Paso_IndexList_free(), and TMPMEMFREE.
Referenced by Paso_IndexList_free(), Paso_Pattern_Aggregiation(), Paso_Pattern_binop(), Paso_Pattern_multiply(), and Paso_Pattern_RS().
void Paso_IndexList_insertIndex | ( | Paso_IndexList * | in, | |
index_t | index | |||
) |
References Paso_IndexList::extension, Paso_IndexList::index, INDEXLIST_LENGTH, Paso_IndexList::n, Paso_checkPtr(), Paso_IndexList_insertIndex(), and TMPMEMALLOC.
Referenced by Paso_IndexList_insertIndex(), Paso_Pattern_Aggregiation(), Paso_Pattern_binop(), Paso_Pattern_multiply(), and Paso_Pattern_RS().
void Paso_IndexList_toArray | ( | Paso_IndexList * | in, | |
index_t * | array, | |||
index_t | range_min, | |||
index_t | range_max, | |||
index_t | index_offset | |||
) |
References Paso_IndexList::extension, Paso_IndexList::index, Paso_IndexList::n, and Paso_IndexList_toArray().
Referenced by Paso_IndexList_createPattern(), and Paso_IndexList_toArray().
Paso_Pattern* Paso_Pattern_alloc | ( | int | type, | |
dim_t | numOutput, | |||
dim_t | numInput, | |||
index_t * | ptr, | |||
index_t * | index | |||
) |
References Paso_Pattern::index, Paso_Pattern::len, MAX, MEMALLOC, MIN, Paso_Pattern::numInput, Paso_Pattern::numOutput, Paso_checkPtr(), Paso_comparIndex(), Paso_resetError(), Paso_setError(), PATTERN_FORMAT_OFFSET1, PATTERN_FORMAT_SYM, Paso_Pattern::ptr, Paso_Pattern::reference_counter, Paso_Pattern::type, and TYPE_ERROR.
Referenced by Finley_IndexList_createPattern(), Paso_IndexList_createPattern(), Paso_Pattern_getSubpattern(), Paso_Pattern_unrollBlocks(), Paso_SparseMatrix_loadMM_toCSR(), Paso_SystemMatrix_loadMM_toCSC(), and Paso_SystemMatrix_loadMM_toCSR().
Paso_Pattern* Paso_Pattern_binop | ( | int | type, | |
Paso_Pattern * | A, | |||
Paso_Pattern * | B | |||
) |
References Paso_IndexList::extension, Paso_Pattern::index, Paso_IndexList::n, Paso_Pattern::numInput, Paso_Pattern::numOutput, Paso_checkPtr(), Paso_IndexList_createPattern(), Paso_IndexList_free(), Paso_IndexList_insertIndex(), Paso_Pattern::ptr, TMPMEMALLOC, and TMPMEMFREE.
Referenced by Paso_Solver_getAMG().
void Paso_Pattern_free | ( | Paso_Pattern * | in | ) |
References Paso_Pattern::index, MEMFREE, Paso_Pattern::ptr, and Paso_Pattern::reference_counter.
Referenced by Finley_IndexList_createPattern(), Finley_makePattern(), Finley_Mesh_optimizeDOFDistribution(), Finley_Mesh_optimizeDOFLabeling(), Paso_IndexList_createPattern(), Paso_Pattern_Aggregiation(), Paso_Pattern_RS(), Paso_Solver_getAMG(), Paso_Solver_GS_free(), Paso_Solver_ILU_free(), Paso_SparseMatrix_free(), Paso_SparseMatrix_getSubmatrix(), Paso_SparseMatrix_loadMM_toCSR(), Paso_SystemMatrix_loadMM_toCSC(), Paso_SystemMatrix_loadMM_toCSR(), Paso_SystemMatrixPattern_free(), and Paso_SystemMatrixPattern_unrollBlocks().
Paso_Pattern* Paso_Pattern_getReference | ( | Paso_Pattern * | in | ) |
References Paso_Pattern::reference_counter.
Referenced by Paso_Pattern_unrollBlocks(), Paso_Solver_getGS(), Paso_Solver_getILU(), Paso_SparseMatrix_alloc(), and Paso_SystemMatrixPattern_alloc().
bool_t Paso_Pattern_isEmpty | ( | Paso_Pattern * | in | ) |
References FALSE, Paso_Pattern::index, Paso_Pattern::ptr, and TRUE.
Referenced by Paso_SparseMatrix_MatrixVector_CSC_OFFSET0(), and Paso_SparseMatrix_setValues().
Paso_Pattern* Paso_Pattern_multiply | ( | int | type, | |
Paso_Pattern * | A, | |||
Paso_Pattern * | B | |||
) |
References Paso_IndexList::extension, Paso_Pattern::index, Paso_IndexList::n, Paso_Pattern::numInput, Paso_Pattern::numOutput, Paso_checkPtr(), Paso_IndexList_createPattern(), Paso_IndexList_free(), Paso_IndexList_insertIndex(), Paso_Pattern::ptr, TMPMEMALLOC, and TMPMEMFREE.
Referenced by Paso_Solver_getAMG().