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

Direct computation of the density (i.e. matrix representation) for dense vectors. More...

#include <dense_direct.hpp>

Inheritance diagram for kqp::DenseDirectBuilder< Scalar >:
kqp::KernelEVD< Scalar > kqp::KernelEVDBase

Public Types

typedef Dense< Scalar > FDense

Public Member Functions

 DenseDirectBuilder (int dimension)
void reset ()
 Resets the state of the builder.
- Public Member Functions inherited from kqp::KernelEVD< Scalar >
 KernelEVD (const FSpaceCPtr &featureSpace)
virtual void add (Real alpha, const FMatrixCPtr &mX, const ScalarAltMatrix &mA)
 Rank-n update.
void add (const FMatrixCPtr &mU)
 Rank-n update.
Decomposition< Scalar > getDecomposition () const
Index getUpdateCount () const
 Return the number of updates.
const FSpaceCPtr & getFSpace () const

Data Fields

ScalarMatrix matrix

Protected Member Functions

virtual void _add (Real alpha, const FMatrixCPtr &mX, const ScalarAltMatrix &mA) override
 Rank-n update.
virtual Decomposition< Scalar > _getDecomposition () const override

Detailed Description

template<class Scalar>
class kqp::DenseDirectBuilder< Scalar >

Direct computation of the density (i.e. matrix representation) for dense vectors.

Member Function Documentation

template<class Scalar >
virtual void kqp::DenseDirectBuilder< Scalar >::_add ( Real  alpha,
const FMatrixCPtr &  mU,
const ScalarAltMatrix &  mA 

Rank-n update.

Updates the current decomposition to \(A^\prime \approx A + \alpha X A A^T X^\top\)

alphaThe coefficient for the update
mXThe feature matrix X with n feature vectors.
mAThe mixture matrix (of dimensions n x k).

Implements kqp::KernelEVD< Scalar >.

template<class Scalar >
virtual Decomposition<Scalar> kqp::DenseDirectBuilder< Scalar >::_getDecomposition ( ) const

Get the decomposition

Implements kqp::KernelEVD< Scalar >.

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