fei::impl_utils Namespace Reference


Functions

void find_offsets (const std::vector< int > &sources, const std::vector< int > &targets, std::vector< int > &offsets)
void pack_FillableMat (const fei::FillableMat &mat, std::vector< int > &intdata, std::vector< double > &doubledata)
void unpack_FillableMat (const std::vector< int > &intdata, const std::vector< double > &doubledata, fei::FillableMat &mat, bool clear_mat_on_entry, bool overwrite_entries)
void separate_BC_eqns (const fei::FillableMat &mat, std::vector< int > &bcEqns, std::vector< double > &bcVals)
void create_col_to_row_map (const fei::FillableMat &mat, std::multimap< int, int > &crmap)
int remove_couplings (fei::FillableMat &mat)
void global_union (MPI_Comm comm, const fei::FillableMat &localMatrix, fei::FillableMat &globalUnionMatrix)
void global_union (MPI_Comm comm, const fei::CSVec &localVec, fei::CSVec &globalUnionVec)
void translate_to_reduced_eqns (const fei::Reducer &reducer, fei::CSRMat &mat)
void translate_to_reduced_eqns (const fei::Reducer &reducer, fei::CSVec &vec)
void add_to_graph (const fei::CSRMat &inmat, fei::Graph &graph)
void add_to_matrix (const fei::CSRMat &inmat, bool sum_into, fei::Matrix &matrix)


Detailed Description

The impl_utils namespace contains implementation-utilities. Helpers for implementation code, not part of the public API.


Function Documentation

void fei::impl_utils::find_offsets ( const std::vector< int > &  sources,
const std::vector< int > &  targets,
std::vector< int > &  offsets 
)

Given a vector of sources and a vector of targets, fill the offsets vector such that if offsets[i] >= 0, then sources[i] == targets[offsets[i]]. For any i such that sources[i] is not found in targets, then offsets[i] == -1. The offsets vector will have length equal to the length of sources.

For efficiency, it is assumed that both sources and targets are sorted.

Definition at line 24 of file fei_impl_utils.cpp.

void fei::impl_utils::pack_FillableMat ( const fei::FillableMat mat,
std::vector< int > &  intdata,
std::vector< double > &  doubledata 
)

pack an fei::FillableMat object into a pair of std::vector objects.

Definition at line 53 of file fei_impl_utils.cpp.

void fei::impl_utils::unpack_FillableMat ( const std::vector< int > &  intdata,
const std::vector< double > &  doubledata,
fei::FillableMat mat,
bool  clear_mat_on_entry = true,
bool  overwrite_entries = true 
)

unpack a pair of std::vector objects into an fei::FillableMat object. The std::vector objects are assumed to have been produced by the function pack_FillableMat(...).

Definition at line 90 of file fei_impl_utils.cpp.


Generated on Wed May 12 01:33:54 2010 for FEI by  doxygen 1.4.7