Kernel Quantum Probability Library
The KQP library aims at providing tools for working with quantums probabilities
Public Types | Public Member Functions | Data Fields
kqp::IndexedValue< Scalar > Class Template Reference

#include <evd_update.inc.hpp>

Public Types

typedef Eigen::NumTraits
< Scalar >::Real 
Real
 

Public Member Functions

void setSelected (bool value)
 
bool isRemoved () const
 
void setRemoved (bool value)
 
bool isSelected () const
 
 IndexedValue (size_t position, Real d, Scalar z)
 
std::string toString ()
 

Data Fields

size_t newPosition
 
Real lambda
 
Real d
 
Scalar z
 
std::bitset< 2 > status
 
long position
 

Detailed Description

template<typename Scalar>
class kqp::IndexedValue< Scalar >

Each value is indexed

Author
B. Piwowarski benja.nosp@m.min@.nosp@m.bpiwo.nosp@m.war..nosp@m.net

Member Function Documentation

template<typename Scalar>
bool kqp::IndexedValue< Scalar >::isRemoved ( ) const
inline

Was this eigenvalue removed from the decomposition (by the selection algorithm)

template<typename Scalar>
bool kqp::IndexedValue< Scalar >::isSelected ( ) const
inline

Was this eigenvalue selected (otherwise it was deflated through rotation or zeroing)

template<typename Scalar>
void kqp::IndexedValue< Scalar >::setRemoved ( bool  value)
inline

Set the removed value (see isRemoved()

template<typename Scalar>
void kqp::IndexedValue< Scalar >::setSelected ( bool  value)
inline

Set the selection status

Parameters
value

Field Documentation

template<typename Scalar>
Real kqp::IndexedValue< Scalar >::d

The original eigenvalue

template<typename Scalar>
Real kqp::IndexedValue< Scalar >::lambda

The new corresponding eigenvalue ( >= original)

template<typename Scalar>
size_t kqp::IndexedValue< Scalar >::newPosition

The rank in the matrix

template<typename Scalar>
long kqp::IndexedValue< Scalar >::position

Original position (-1 if not part of the original matrix)

template<typename Scalar>
std::bitset<2> kqp::IndexedValue< Scalar >::status

The status (selection)

template<typename Scalar>
Scalar kqp::IndexedValue< Scalar >::z

The corresponding z


The documentation for this class was generated from the following file: