Kernel Quantum Probability Library
The KQP library aims at providing tools for working with quantums probabilities
Public Member Functions
kqp::FeatureMatrixBase< Scalar > Class Template Referenceabstract

Base for all feature matrix classes. More...

#include <feature_matrix.hpp>

Inheritance diagram for kqp::FeatureMatrixBase< Scalar >:
kqp::Dense< Scalar > kqp::KernelSumMatrix< Scalar > kqp::Sparse< Scalar > kqp::SparseDense< Scalar >

Public Member Functions

 KQP_SCALAR_TYPEDEFS (Scalar)
 
virtual Index size () const =0
 
virtual void add (const FMatrixBase &f, const std::vector< bool > *which=NULL)=0
 
virtual FMatrixPtr subset (const std::vector< bool >::const_iterator &begin, const std::vector< bool >::const_iterator &end) const =0
 Reduces the feature matrix to a subset of its vectors.
 
FMatrixPtr subset (const std::vector< bool > &list) const
 Reduces the feature matrix to a subset of its vectors.
 
virtual FMatrixBase & operator= (const FeatureMatrixBase< Scalar > &other)=0
 
virtual FMatrixBasePtr copy () const =0
 
template<typename T >
const T & as () const
 
template<typename T >
T & as ()
 
void add (const FMatrixCPtr &f, const std::vector< bool > *which=NULL)
 

Detailed Description

template<class Scalar>
class kqp::FeatureMatrixBase< Scalar >

Base for all feature matrix classes.

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

Member Function Documentation

template<class Scalar>
virtual void kqp::FeatureMatrixBase< Scalar >::add ( const FMatrixBase &  f,
const std::vector< bool > *  which = NULL 
)
pure virtual
template<class Scalar>
void kqp::FeatureMatrixBase< Scalar >::add ( const FMatrixCPtr &  f,
const std::vector< bool > *  which = NULL 
)
inline

Add pre-images vectors

template<class Scalar>
template<typename T >
const T& kqp::FeatureMatrixBase< Scalar >::as ( ) const
inline

Dynamic cast

template<class Scalar>
virtual FMatrixBasePtr kqp::FeatureMatrixBase< Scalar >::copy ( ) const
pure virtual
template<class Scalar>
virtual FMatrixBase& kqp::FeatureMatrixBase< Scalar >::operator= ( const FeatureMatrixBase< Scalar > &  other)
pure virtual

Assignement

Implemented in kqp::KernelSumMatrix< Scalar >.

template<class Scalar>
virtual Index kqp::FeatureMatrixBase< Scalar >::size ( ) const
pure virtual
template<class Scalar>
virtual FMatrixPtr kqp::FeatureMatrixBase< Scalar >::subset ( const std::vector< bool >::const_iterator &  begin,
const std::vector< bool >::const_iterator &  end 
) const
pure virtual

Reduces the feature matrix to a subset of its vectors.

The list of indices is supposed to be ordered.

Parameters
beginBeginning of the list of indices
endEnd of the list of indices

Implemented in kqp::SparseDense< Scalar >, kqp::Dense< Scalar >, kqp::Sparse< Scalar >, and kqp::KernelSumMatrix< Scalar >.

template<class Scalar>
FMatrixPtr kqp::FeatureMatrixBase< Scalar >::subset ( const std::vector< bool > &  list) const
inline

Reduces the feature matrix to a subset of its vectors.

Parameters
listThe list of boolean values (true = keep)

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