PolyFEM
|
#include <MatrixCache.hpp>
Public Member Functions | |
DenseMatrixCache () | |
DenseMatrixCache (const size_t size) | |
DenseMatrixCache (const size_t rows, const size_t cols) | |
DenseMatrixCache (const MatrixCache &other) | |
DenseMatrixCache (const DenseMatrixCache &other) | |
std::unique_ptr< MatrixCache > | copy () const override |
void | init (const size_t size) override |
void | init (const size_t rows, const size_t cols) override |
void | init (const MatrixCache &other) override |
void | init (const DenseMatrixCache &other) |
void | set_zero () override |
void | reserve (const size_t size) override |
size_t | entries_size () const override |
size_t | capacity () const override |
size_t | non_zeros () const override |
size_t | triplet_count () const override |
bool | is_sparse () const override |
void | add_value (const int e, const int i, const int j, const double value) override |
StiffnessMatrix | get_matrix (const bool compute_mapping=true) override |
void | prune () override |
std::shared_ptr< MatrixCache > | operator+ (const MatrixCache &a) const override |
std::shared_ptr< MatrixCache > | operator+ (const DenseMatrixCache &a) const |
void | operator+= (const MatrixCache &o) override |
void | operator+= (const DenseMatrixCache &o) |
const Eigen::MatrixXd & | mat () const |
Public Member Functions inherited from polyfem::utils::MatrixCache | |
MatrixCache () | |
virtual | ~MatrixCache ()=default |
bool | is_dense () const |
Private Attributes | |
Eigen::MatrixXd | mat_ |
Definition at line 136 of file MatrixCache.hpp.
|
inline |
Definition at line 139 of file MatrixCache.hpp.
polyfem::utils::DenseMatrixCache::DenseMatrixCache | ( | const size_t | size | ) |
Definition at line 327 of file MatrixCache.cpp.
References mat_.
polyfem::utils::DenseMatrixCache::DenseMatrixCache | ( | const size_t | rows, |
const size_t | cols | ||
) |
Definition at line 332 of file MatrixCache.cpp.
References mat_.
polyfem::utils::DenseMatrixCache::DenseMatrixCache | ( | const MatrixCache & | other | ) |
Definition at line 337 of file MatrixCache.cpp.
References init().
polyfem::utils::DenseMatrixCache::DenseMatrixCache | ( | const DenseMatrixCache & | other | ) |
Definition at line 342 of file MatrixCache.cpp.
References init().
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 372 of file MatrixCache.cpp.
References mat_.
|
inlineoverridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 159 of file MatrixCache.hpp.
References mat_.
|
inlineoverridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 145 of file MatrixCache.hpp.
|
inlineoverridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 158 of file MatrixCache.hpp.
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 379 of file MatrixCache.cpp.
References mat_.
void polyfem::utils::DenseMatrixCache::init | ( | const DenseMatrixCache & | other | ) |
Definition at line 362 of file MatrixCache.cpp.
References mat_.
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 357 of file MatrixCache.cpp.
References init().
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 352 of file MatrixCache.cpp.
References mat_.
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 347 of file MatrixCache.cpp.
References mat_.
Referenced by DenseMatrixCache(), DenseMatrixCache(), and init().
|
inlineoverridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 162 of file MatrixCache.hpp.
|
inline |
Definition at line 173 of file MatrixCache.hpp.
References mat_.
|
inlineoverridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 160 of file MatrixCache.hpp.
References mat_.
Referenced by triplet_count().
std::shared_ptr< MatrixCache > polyfem::utils::DenseMatrixCache::operator+ | ( | const DenseMatrixCache & | a | ) | const |
Definition at line 389 of file MatrixCache.cpp.
References mat_.
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 384 of file MatrixCache.cpp.
void polyfem::utils::DenseMatrixCache::operator+= | ( | const DenseMatrixCache & | o | ) |
Definition at line 401 of file MatrixCache.cpp.
References mat_.
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 396 of file MatrixCache.cpp.
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 377 of file MatrixCache.cpp.
|
inlineoverridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 157 of file MatrixCache.hpp.
|
overridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 367 of file MatrixCache.cpp.
References mat_.
|
inlineoverridevirtual |
Implements polyfem::utils::MatrixCache.
Definition at line 161 of file MatrixCache.hpp.
References non_zeros().
|
private |
Definition at line 176 of file MatrixCache.hpp.
Referenced by add_value(), capacity(), DenseMatrixCache(), DenseMatrixCache(), get_matrix(), init(), init(), init(), mat(), non_zeros(), operator+(), operator+=(), and set_zero().