Tomographer  v1.0a
Tomographer C++ Framework Documentation
pos_semidef_util.h File Reference

(v1.0a)

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

#include <Eigen/Core>
#include <Eigen/Eigenvalues>
+ 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::Tools
 Various useful tools.
 

Functions

template<typename VectorType >
void Tomographer::Tools::force_pos_vec_keepsum (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::Tools::force_pos_semidef (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::Tools::safe_operator_sqrt (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::Tools::safe_operator_inv_sqrt (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.