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

Public Types

typedef Eigen::Matrix< Scalar,
Dynamic, Dynamic > 
Matrix
 
typedef Eigen::Matrix< Scalar,
Dynamic, 1 > 
Vector
 

Public Member Functions

 DecompositionList (const Vector &eigenvalues)
 
virtual Scalar get (Index i) const override
 
virtual void remove (Index i) override
 
virtual Index size () const override
 
virtual Index getRank () const override
 
virtual bool isSelected (size_t i) const override
 
const std::vector< bool > & getSelected () const override
 

Member Function Documentation

template<typename Scalar>
virtual Scalar kqp::DecompositionList< Scalar >::get ( Index  i) const
inlineoverridevirtual

Select an eigenvalue

Implements kqp::EigenList< Scalar >.

template<typename Scalar>
virtual Index kqp::DecompositionList< Scalar >::getRank ( ) const
inlineoverridevirtual

The current number of selected

Implements kqp::EigenList< Scalar >.

template<typename Scalar>
virtual bool kqp::DecompositionList< Scalar >::isSelected ( size_t  i) const
inlineoverridevirtual

Check if an eigenvalue is currently selected or not

Implements kqp::EigenList< Scalar >.

template<typename Scalar>
virtual void kqp::DecompositionList< Scalar >::remove ( Index  i)
inlineoverridevirtual

Remove this eigenvalue from the selection

Implements kqp::EigenList< Scalar >.

template<typename Scalar>
virtual Index kqp::DecompositionList< Scalar >::size ( ) const
inlineoverridevirtual

The original number of eigenvalues

Implements kqp::EigenList< Scalar >.


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