escript
Revision_
|
#include <Pattern.h>
paso::Pattern::Pattern | ( | int | type, |
dim_t | numOutput, | ||
dim_t | numInput, | ||
index_t * | ptr, | ||
index_t * | index | ||
) |
References paso::util::comparIndex(), Esys_resetError(), Esys_setError(), len, MATRIX_FORMAT_OFFSET1, numOutput, ptr, and TYPE_ERROR.
Referenced by fromIndexListArray(), getSubpattern(), and unrollBlocks().
Pattern_ptr paso::Pattern::binop | ( | int | type, |
const_Pattern_ptr | other | ||
) | const |
References fromIndexListArray(), index, numInput, numOutput, and ptr.
References coloring, Esys_noError(), paso::util::isAny(), mis(), numColors, numInput, and numOutput.
Referenced by getNumColors().
References paso::util::comparIndex(), index, main_iptr, numOutput, and ptr.
Pattern_ptr paso::Pattern::fromIndexListArray | ( | dim_t | n0, |
dim_t | n, | ||
const esysUtils::IndexListArray & | index_list_array, | ||
index_t | range_min, | ||
index_t | range_max, | ||
index_t | index_offset | ||
) | [static] |
References Esys_noError(), index, MATRIX_FORMAT_DEFAULT, Pattern(), and ptr.
Referenced by binop(), Dudley_makePattern(), Dudley_Mesh_optimizeDOFDistribution(), Dudley_Mesh_optimizeDOFLabeling(), paso::SparseMatrix::getTranspose(), finley::Mesh::makePattern(), multiply(), finley::Mesh::optimizeDOFDistribution(), and finley::Mesh::optimizeDOFLabeling().
dim_t paso::Pattern::getBandwidth | ( | index_t * | label | ) | const |
References index, numOutput, and ptr.
Referenced by reduceBandwidth().
dim_t paso::Pattern::getNumColors | ( | ) | [inline] |
References borrowColoringPointer(), and numColors.
Pattern_ptr paso::Pattern::getSubpattern | ( | dim_t | newNumRows, |
dim_t | newNumCols, | ||
const index_t * | rowList, | ||
const index_t * | newColIndex | ||
) | const |
References paso::util::cumsum(), Esys_noError(), Esys_resetError(), index, MATRIX_FORMAT_OFFSET1, Pattern(), ptr, and type.
bool paso::Pattern::isEmpty | ( | ) | const [inline] |
dim_t paso::Pattern::maxDeg | ( | ) | const [inline] |
References numInput.
void paso::Pattern::mis | ( | index_t * | mis_marker | ) | const |
Searches for a maximal independent set MIS in the matrix pattern.
References Esys_setError(), index, IS_AVAILABLE, IS_CONNECTED_TO_MIS, IS_IN_MIS, IS_IN_MIS_NOW, paso::util::isAny(), MATRIX_FORMAT_OFFSET1, numInput, numOutput, paso::Pattern_mis_seed, ptr, type, and VALUE_ERROR.
Referenced by borrowColoringPointer().
Pattern_ptr paso::Pattern::multiply | ( | int | type, |
const_Pattern_ptr | other | ||
) | const |
References fromIndexListArray(), index, numOutput, and ptr.
void paso::Pattern::reduceBandwidth | ( | index_t * | oldToNew | ) |
Pattern_ptr paso::Pattern::unrollBlocks | ( | int | newType, |
dim_t | outputBlockSize, | ||
dim_t | inputBlockSize | ||
) |
References Esys_noError(), Esys_resetError(), index, len, MATRIX_FORMAT_OFFSET1, numInput, numOutput, Pattern(), ptr, and type.
Referenced by borrowColoringPointer(), and ~Pattern().
Referenced by binop(), borrowMainDiagonalPointer(), paso::dropTree(), fromIndexListArray(), getBandwidth(), getSubpattern(), mis(), multiply(), unrollBlocks(), and ~Pattern().
Referenced by Pattern(), and unrollBlocks().
Referenced by borrowMainDiagonalPointer(), and ~Pattern().
Referenced by borrowColoringPointer(), and getNumColors().
Referenced by binop(), borrowColoringPointer(), paso::dropTree(), maxDeg(), mis(), reduceBandwidth(), and unrollBlocks().
Referenced by binop(), borrowColoringPointer(), borrowMainDiagonalPointer(), getBandwidth(), mis(), multiply(), Pattern(), reduceBandwidth(), and unrollBlocks().
Referenced by binop(), borrowMainDiagonalPointer(), paso::dropTree(), fromIndexListArray(), getBandwidth(), getSubpattern(), mis(), multiply(), Pattern(), reduceBandwidth(), unrollBlocks(), and ~Pattern().
Referenced by getSubpattern(), mis(), and unrollBlocks().