util.h File Reference
#include <vector>
#include <iostream>
#include "mpqc/math/external/eigen/eigen.h"
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  mpqc::detail::scalar_type< double >
 
struct  mpqc::detail::scalar_type< float >
 
struct  mpqc::detail::scalar_type< std::complex< T > >
 

Namespaces

 mpqc
 The top-level namespace for all Massively Parallel Quantum Chemistry package.
 
 mpqc::detail
 

Typedefs

template<typename T >
using mpqc::detail::scalar_t = typename scalar_type< T >::type
 

Functions

void mpqc::detail::sort_eigen (VectorZ &eigVal, MatrixZ &eigVec)
 This sorts eigenvalues and eigenvectors in ascending order of the real parts of eigenvalues. More...
 
template<typename Numeric >
Numeric mpqc::detail::canonical_phase_inverse (const Numeric &value)
 
template<typename _Numeric , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
auto mpqc::detail::canonical_column_phase (Eigen::Matrix< _Numeric, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &matrix, std::vector< Eigen::Index > *pd_element_rowidx_ptr=nullptr, scalar_t< _Numeric > comparison_tolerance=std::numeric_limits< scalar_t< _Numeric >>::epsilon())
 Canonicalizes column phases. More...
 
template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
auto mpqc::detail::format_commainit (const Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &matrix, int precision=-1, bool align_cols=true)
 
template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
void mpqc::detail::write_commainit (std::ostream &os, const Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &matrix, const std::string name="matrix", int precision=-1, bool align_cols=true)
 
template<typename _Scalar , int _Rows, int _Cols, int _Options, int _MaxRows, int _MaxCols>
auto mpqc::detail::format_cpp (const Eigen::Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &matrix)