Tomographer  v2.0
Tomographer C++ Framework Documentation
pos_semidef_util.h File Reference

(v2.0)

Tools for dealing with positive semidefinite matrices. More...

#include <Eigen/Core>
#include <Eigen/Eigenvalues>
#include <tomographer2/tools/cxxutil.h>
+ Include dependency graph for pos_semidef_util.h:

Go to the source code of this file.

Namespaces

 Tomographer
 Base namespace for the Tomographer project.
 
 Tomographer::MathTools
 General math routines.
 

Functions

template<typename VectorType >
void Tomographer::MathTools::forcePosVecKeepSum (Eigen::Ref< VectorType > vec, const typename Eigen::NumTraits< typename VectorType::Scalar >::Real tolerance=1e-8)
 Make sure that the given vector is numerically positive. More...
 
template<typename MatrixType , typename Der >
MatrixType Tomographer::MathTools::forcePosSemiDef (const Eigen::MatrixBase< Der > &rho, const typename Eigen::NumTraits< typename MatrixType::Scalar >::Real tolerance=1e-8)
 Make sure that rho is numerically positive semidefinite. More...
 
template<typename MatrixType >
MatrixType Tomographer::MathTools::safeOperatorSqrt (const Eigen::Ref< const MatrixType > &A, const typename Eigen::NumTraits< typename MatrixType::Scalar >::Real tolerance=1e-8)
 Safe version of operator square root for positive semidefinite matrices. More...
 
template<typename MatrixType >
MatrixType Tomographer::MathTools::safeOperatorInvSqrt (const Eigen::Ref< const MatrixType > &A, const typename Eigen::NumTraits< typename MatrixType::Scalar >::Real tolerance=1e-8)
 Safe version of operator inverse square root for positive semidefinite matrices. More...
 

Detailed Description

Tools for dealing with positive semidefinite matrices.

Definition in file pos_semidef_util.h.