planc
Parallel Lowrank Approximation with Non-negativity Constraints
Public Member Functions | List of all members
planc::BPPNMF< T > Class Template Reference

#include <bppnmf.hpp>

Public Member Functions

 BPPNMF (const T &A, int lowrank)
 
 BPPNMF (const T &A, const MAT &llf, const MAT &rlf)
 
void computeNMFSingleRHS ()
 
void computeNMF ()
 
double getObjectiveError ()
 
MAT solveScalableNNLS ()
 
 ~BPPNMF ()
 
MAT getLeftLowRankFactor ()
 Returns the left low rank factor matrix W. More...
 
MAT getRightLowRankFactor ()
 Returns the right low rank factor matrix H. More...
 
void computeObjectiveError ()
 
void computeObjectiveError (const T &At, const MAT &WtW, const MAT &HtH)
 
void num_iterations (const int it)
 Sets number of iterations for the NMF algorithms. More...
 
const unsigned int num_iterations () const
 Returns the number of iterations. More...
 
void regW (const FVEC &iregW)
 Sets the regularization on left low rank factor W. More...
 
FVEC regW ()
 Returns the L2 and L1 regularization parameters of W as a vector. More...
 
void regH (const FVEC &iregH)
 Sets the regularization on right low rank H. More...
 
FVEC regH ()
 Returns the L2 and L1 regularization parameters of W as a vector. More...
 
void clear ()
 Clear the memory for input matrix A, right low rank factor W and left low rank factor H. More...
 

Detailed Description

template<class T>
class planc::BPPNMF< T >

Definition at line 20 of file bppnmf.hpp.

Inheritance diagram for planc::BPPNMF< T >:
planc::NMF< T >

Constructor & Destructor Documentation

◆ BPPNMF() [1/2]

template<class T>
planc::BPPNMF< T >::BPPNMF ( const T &  A,
int  lowrank 
)
inline

Definition at line 92 of file bppnmf.hpp.

◆ BPPNMF() [2/2]

template<class T>
planc::BPPNMF< T >::BPPNMF ( const T &  A,
const MAT llf,
const MAT rlf 
)
inline

Definition at line 96 of file bppnmf.hpp.

◆ ~BPPNMF()

template<class T>
planc::BPPNMF< T >::~BPPNMF ( )
inline

Definition at line 247 of file bppnmf.hpp.

Member Function Documentation

◆ clear()

template<class T>
void planc::NMF< T >::clear ( )
inlineinherited

Clear the memory for input matrix A, right low rank factor W and left low rank factor H.

Definition at line 355 of file nmf.hpp.

◆ computeNMF()

template<class T>
void planc::BPPNMF< T >::computeNMF ( )
inlinevirtual

Implements planc::NMF< T >.

Definition at line 181 of file bppnmf.hpp.

◆ computeNMFSingleRHS()

template<class T>
void planc::BPPNMF< T >::computeNMFSingleRHS ( )
inline

Definition at line 99 of file bppnmf.hpp.

◆ computeObjectiveError() [1/2]

template<class T>
void planc::NMF< T >::computeObjectiveError ( )
inlineinherited

Definition at line 238 of file nmf.hpp.

◆ computeObjectiveError() [2/2]

template<class T>
void planc::NMF< T >::computeObjectiveError ( const T &  At,
const MAT WtW,
const MAT HtH 
)
inlineinherited

Definition at line 330 of file nmf.hpp.

◆ getLeftLowRankFactor()

template<class T>
MAT planc::NMF< T >::getLeftLowRankFactor ( )
inlineinherited

Returns the left low rank factor matrix W.

Definition at line 167 of file nmf.hpp.

◆ getObjectiveError()

template<class T>
double planc::BPPNMF< T >::getObjectiveError ( )
inline

Definition at line 235 of file bppnmf.hpp.

◆ getRightLowRankFactor()

template<class T>
MAT planc::NMF< T >::getRightLowRankFactor ( )
inlineinherited

Returns the right low rank factor matrix H.

Definition at line 169 of file nmf.hpp.

◆ num_iterations() [1/2]

template<class T>
void planc::NMF< T >::num_iterations ( const int  it)
inlineinherited

Sets number of iterations for the NMF algorithms.

Definition at line 340 of file nmf.hpp.

◆ num_iterations() [2/2]

template<class T>
const unsigned int planc::NMF< T >::num_iterations ( ) const
inlineinherited

Returns the number of iterations.

Definition at line 350 of file nmf.hpp.

◆ regH() [1/2]

template<class T>
void planc::NMF< T >::regH ( const FVEC iregH)
inlineinherited

Sets the regularization on right low rank H.

Definition at line 344 of file nmf.hpp.

◆ regH() [2/2]

template<class T>
FVEC planc::NMF< T >::regH ( )
inlineinherited

Returns the L2 and L1 regularization parameters of W as a vector.

Definition at line 348 of file nmf.hpp.

◆ regW() [1/2]

template<class T>
void planc::NMF< T >::regW ( const FVEC iregW)
inlineinherited

Sets the regularization on left low rank factor W.

Definition at line 342 of file nmf.hpp.

◆ regW() [2/2]

template<class T>
FVEC planc::NMF< T >::regW ( )
inlineinherited

Returns the L2 and L1 regularization parameters of W as a vector.

Definition at line 346 of file nmf.hpp.

◆ solveScalableNNLS()

template<class T>
MAT planc::BPPNMF< T >::solveScalableNNLS ( )
inline

Definition at line 243 of file bppnmf.hpp.


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