PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
|
Linear Algebra related functionality. More...
Namespaces | |
namespace | mini |
Mini linear algebra related functionality. | |
Classes | |
class | SparsityPattern |
Sparsity pattern precomputer to accelerate sparse matrix assembly. More... | |
Enumerations | |
enum class | EEigenvalueFilter { None , SpdProjection , FlipNegative } |
Bit-flag enum for SPD projection type. | |
Functions | |
template<class TDerivedA, class TDerivedB> | |
bool | FilterEigenvalues (Eigen::MatrixBase< TDerivedA > const &A, EEigenvalueFilter mode, Eigen::MatrixBase< TDerivedB > &B) |
Filter eigenvalues of a symmetric matrix A and store the result in B. | |
template<class TDerivedC> | |
CSCMatrix | SelectionMatrix (Eigen::DenseBase< TDerivedC > const &C, Index n=Index(-1)) |
Construct the selection matrix S s.t. X*S selects all columns C of X. | |
Linear Algebra related functionality.
bool pbat::math::linalg::FilterEigenvalues | ( | Eigen::MatrixBase< TDerivedA > const & | A, |
EEigenvalueFilter | mode, | ||
Eigen::MatrixBase< TDerivedB > & | B ) |
Filter eigenvalues of a symmetric matrix A and store the result in B.
TDerivedA | Type of the input matrix A |
TDerivedB | Type of the output matrix B |
A | Input matrix |
mode | Eigenvalue filtering mode |
B | Output matrix |
CSCMatrix pbat::math::linalg::SelectionMatrix | ( | Eigen::DenseBase< TDerivedC > const & | C, |
Index | n = Index(-1) ) |
Construct the selection matrix S s.t. X*S selects all columns C of X.
TDerivedC | Type of the index vector |
C | Vector of indices |
n | Number of rows in the selection matrix |
n x |C|
selection matrix