![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
Classes | |
| class | SymMat |
| Eigen expression representing a rank-1-derived symmetric matrix. More... | |
| class | RowMat |
| Eigen expression representing a vector inserted as one matrix row. More... | |
| class | OneComponentVector |
| Eigen expression for a vector with a single non-zero component. More... | |
Functions | |
| template<Eigen::Index CrossId, class ArgType> | |
| SymMat< CrossId, ArgType > | makeSymMat (const Eigen::MatrixBase< ArgType > &arg) |
| Build a SymMat expression from a column vector. | |
| template<Eigen::Index RowId, class ArgType> | |
| RowMat< RowId, ArgType > | makeRowMat (const Eigen::MatrixBase< ArgType > &arg) |
| Build a RowMat expression from a column vector. | |
| template<typename Derived> | |
| auto | toMap (Eigen::MatrixBase< Derived > &mat) |
| View a dense Eigen matrix/vector as a mutable Eigen::Map. | |
| template<typename Derived> | |
| auto | toConstMap (const Eigen::MatrixBase< Derived > &mat) |
| View a dense Eigen matrix/vector as a read-only Eigen::Map. | |
| bool | compareEigenMatrices (const Eigen::MatrixXd &mat1, const Eigen::MatrixXd &mat2, const double tolerance=1e-12) |
| Compare two dense matrices for approximate equality. | |
| bool | compareEigenVectors (const Eigen::VectorXd &vec1, const Eigen::VectorXd &vec2, const double tolerance=1e-12) |
| Compare two dense vectors for approximate equality. | |
|
inline |
Compare two dense matrices for approximate equality.
Matrices are considered equal if their dimensions match and the norm of their difference is within tolerance of the second matrix's norm. On mismatch, a diagnostic message is printed to stdout.
| mat1 | First matrix. |
| mat2 | Second (reference) matrix. |
| tolerance | Relative tolerance applied to mat2's norm. |
|
inline |
Compare two dense vectors for approximate equality.
Vectors are considered equal if their sizes match and the norm of their difference is within tolerance of the second vector's norm. On mismatch, a diagnostic message is printed to stdout.
| vec1 | First vector. |
| vec2 | Second (reference) vector. |
| tolerance | Relative tolerance applied to vec2's norm. |
| RowMat< RowId, ArgType > EigenVulpes::makeRowMat | ( | const Eigen::MatrixBase< ArgType > & | arg | ) |
Build a RowMat expression from a column vector.
| RowId | Row index that carries the vector's coefficients. |
| ArgType | Eigen type of the underlying column vector. |
| arg | The column vector to wrap. |
| SymMat< CrossId, ArgType > EigenVulpes::makeSymMat | ( | const Eigen::MatrixBase< ArgType > & | arg | ) |
Build a SymMat expression from a column vector.
| CrossId | Row/column index that carries the vector's coefficients. |
| ArgType | Eigen type of the underlying column vector. |
| arg | The column vector to wrap. |
| auto EigenVulpes::toConstMap | ( | const Eigen::MatrixBase< Derived > & | mat | ) |
| auto EigenVulpes::toMap | ( | Eigen::MatrixBase< Derived > & | mat | ) |