FEI Package Browser (Single Doxygen Collection)
Version of the Day
|
#include <fei_CSVec.hpp>
Public Member Functions | |
CSVec (unsigned sz=0) | |
virtual | ~CSVec () |
CSVec & | operator= (const CSVec &invec) |
std::vector< int > & | indices () |
const std::vector< int > & | indices () const |
std::vector< double > & | coefs () |
const std::vector< double > & | coefs () const |
size_t | size () const |
void | clear () |
bool | operator== (const CSVec &rhs) const |
bool | operator!= (const CSVec &rhs) const |
void | subtract (const CSVec &rhs) |
Private Attributes | |
std::vector< int > | indices_ |
std::vector< double > | coefs_ |
'Compressed Sparse Vector' stored as two std::vectors: a vector of ints for the indices and a vector of doubles for the coefficients.
Non-member functions add_entry and put_entry maintain sortedness of the vector when inserting new entries.
Definition at line 24 of file fei_CSVec.hpp.
fei::CSVec::CSVec | ( | unsigned | sz = 0 | ) |
Definition at line 15 of file fei_CSVec.cpp.
|
virtual |
Definition at line 21 of file fei_CSVec.cpp.
Definition at line 26 of file fei_CSVec.cpp.
|
inline |
Definition at line 31 of file fei_CSVec.hpp.
References indices_.
Referenced by fei::add_CSVec_CSVec(), fei::add_entry(), EqnBuffer::addEqns(), EqnCommMgr::addRemoteRHS(), fei::Reducer::assembleReducedVector(), fei::Vector_core::copyOut(), fei::MatrixTraits< FillableMat >::copyOutRow(), fei::Matrix_Impl< T >::copyOutRow(), fei::Reducer::copyOutVectorValues(), fei::impl_utils::create_col_to_row_map(), snl_fei::LinearSystem_General::enforceEssentialBC_step_1(), snl_fei::LinearSystem_General::enforceEssentialBC_step_2(), LinSysCoreFilter::exchangeRemoteBCs(), fei::FillableMat::FillableMat(), snl_fei::gatherRemoteEssBCs(), fei::get_entry(), fei::impl_utils::global_union(), fei::insert_row(), EqnBuffer::isInIndices(), load_elem_data_putrhs(), fei::multiply_CSRMat_CSVec(), fei::multiply_trans_CSRMat_CSVec(), operator<<(), fei::FillableMat::operator=(), fei::CSRMat::operator=(), fei::impl_utils::pack_FillableMat(), fei::Vector_core::pack_send_buffers(), fei::print(), fei::put_entry(), fei::impl_utils::remove_couplings(), fei::remove_entry(), fei::Vector_core::scatterToOverlap(), LinSysCoreFilter::sumIntoRHS(), and fei::impl_utils::translate_to_reduced_eqns().
|
inline |
Definition at line 32 of file fei_CSVec.hpp.
References indices_.
|
inline |
Definition at line 33 of file fei_CSVec.hpp.
References coefs_.
Referenced by fei::add_CSVec_CSVec(), fei::add_entry(), EqnBuffer::addEqns(), EqnCommMgr::addRemoteRHS(), fei::Reducer::assembleReducedVector(), fei::Vector_core::copyOut(), fei::MatrixTraits< FillableMat >::copyOutRow(), fei::Matrix_Impl< T >::copyOutRow(), fei::Reducer::copyOutVectorValues(), snl_fei::LinearSystem_General::enforceEssentialBC_step_1(), snl_fei::LinearSystem_General::enforceEssentialBC_step_2(), LinSysCoreFilter::exchangeRemoteBCs(), fei::FillableMat::FillableMat(), snl_fei::gatherRemoteEssBCs(), fei::get_entry(), fei::impl_utils::global_union(), fei::Reducer::initialize(), fei::insert_row(), load_elem_data_putrhs(), fei::multiply_CSRMat_CSVec(), fei::multiply_trans_CSRMat_CSVec(), operator<<(), fei::FillableMat::operator=(), fei::CSRMat::operator=(), fei::impl_utils::pack_FillableMat(), fei::Vector_core::pack_send_buffers(), fei::print(), fei::put_entry(), fei::impl_utils::remove_couplings(), fei::remove_entry(), fei::Vector_core::scatterToOverlap(), fei::set_values(), and LinSysCoreFilter::sumIntoRHS().
|
inline |
Definition at line 34 of file fei_CSVec.hpp.
References coefs_.
|
inline |
Definition at line 36 of file fei_CSVec.hpp.
References indices_.
Referenced by fei::Reducer::assembleReducedVector(), fei::Reducer::copyOutVectorValues(), fei::count_nnz(), snl_fei::LinearSystem_General::enforceEssentialBC_step_1(), snl_fei::LinearSystem_General::enforceEssentialBC_step_2(), EqnCommMgr::exchangeIndices(), LinSysCoreFilter::exchangeRemoteBCs(), fei::FillableMat::FillableMat(), snl_fei::gatherRemoteEssBCs(), fei::get_entry(), LinSysCoreFilter::getFromMatrix(), LinSysCoreFilter::getFromRHS(), fei::MatrixTraits< FillableMat >::getRowLength(), fei::Matrix_Impl< T >::getRowLength(), snl_fei::LinearSystem_General::implementBCs(), fei::Reducer::initialize(), load_elem_data_putrhs(), operator<<(), fei::impl_utils::pack_FillableMat(), fei::impl_utils::remove_couplings(), and fei::Vector_core::scatterToOverlap().
|
inline |
Definition at line 38 of file fei_CSVec.hpp.
References coefs_, and indices_.
Referenced by LinSysCoreFilter::assembleReducedRHS(), fei::Reducer::assembleReducedVector(), and fei::Reducer::copyOutVectorValues().
|
inline |
Definition at line 40 of file fei_CSVec.hpp.
|
inline |
Definition at line 44 of file fei_CSVec.hpp.
void fei::CSVec::subtract | ( | const CSVec & | rhs | ) |
Definition at line 94 of file fei_CSVec.cpp.
References fei::add_entry(), coefs_, and indices_.
Referenced by fei::Reducer::assembleReducedMatrix().
|
private |
Definition at line 51 of file fei_CSVec.hpp.
Referenced by clear(), indices(), operator!=(), operator=(), operator==(), size(), and subtract().
|
private |
Definition at line 52 of file fei_CSVec.hpp.
Referenced by clear(), coefs(), operator!=(), operator=(), operator==(), and subtract().