DMRITool  v0.1.1-139-g860d86b4
Diffusion MRI Tool
Public Member Functions | Private Member Functions | Private Attributes | List of all members
spams::FISTA::MultiLogLoss< T > Class Template Reference

#include <fista.h>

+ Inheritance diagram for spams::FISTA::MultiLogLoss< T >:
+ Collaboration diagram for spams::FISTA::MultiLogLoss< T >:

Detailed Description

template<typename T>
class spams::FISTA::MultiLogLoss< T >

Definition at line 689 of file fista.h.

Public Member Functions

eval (const Matrix< T > &W) const
 
virtual T fenchel (const Matrix< T > &input) const
 
void grad (const Matrix< T > &W, Matrix< T > &grad) const
 
void init (const Vector< T > &y)
 
 MultiLogLoss (const AbstractMatrixB< T > &X)
 
virtual void var_fenchel (const Matrix< T > &W, Matrix< T > &grad1, Matrix< T > &grad2, const bool intercept) const
 
virtual ~MultiLogLoss ()
 
- Public Member Functions inherited from spams::FISTA::Loss< T, Matrix< T > >
virtual bool is_fenchel () const
 
 Loss ()
 
virtual bool test_backtracking (const Matrix< T > &y, const Matrix< T > &grad, const Matrix< T > &prox, const T L) const
 
virtual ~Loss ()
 

Private Member Functions

 MultiLogLoss (const MultiLogLoss< T > &dict)
 
MultiLogLoss< T > & operator= (const MultiLogLoss< T > &dict)
 

Private Attributes

const AbstractMatrixB< T > * _X
 
Vector< int > _y
 

Constructor & Destructor Documentation

template<typename T>
spams::FISTA::MultiLogLoss< T >::MultiLogLoss ( const AbstractMatrixB< T > &  X)
inline

Definition at line 691 of file fista.h.

template<typename T>
virtual spams::FISTA::MultiLogLoss< T >::~MultiLogLoss ( )
inlinevirtual

Definition at line 693 of file fista.h.

template<typename T>
spams::FISTA::MultiLogLoss< T >::MultiLogLoss ( const MultiLogLoss< T > &  dict)
explicitprivate

Member Function Documentation

template<typename T>
T spams::FISTA::MultiLogLoss< T >::eval ( const Matrix< T > &  W) const
inlinevirtual

Implements spams::FISTA::Loss< T, Matrix< T > >.

Definition at line 700 of file fista.h.

References spams::Matrix< T >::multSwitch(), spams::Matrix< T >::n(), spams::Matrix< T >::refCol(), and spams::Vector< T >::softmax().

+ Here is the call graph for this function:

template<typename T>
virtual T spams::FISTA::MultiLogLoss< T >::fenchel ( const Matrix< T > &  input) const
inlinevirtual

Implements spams::FISTA::Loss< T, Matrix< T > >.

Definition at line 739 of file fista.h.

References spams::Matrix< T >::m(), spams::Matrix< T >::n(), spams::Matrix< T >::refCol(), and spams::xlogx().

+ Here is the call graph for this function:

template<typename T>
void spams::FISTA::MultiLogLoss< T >::grad ( const Matrix< T > &  W,
Matrix< T > &  grad 
) const
inlinevirtual
template<typename T>
void spams::FISTA::MultiLogLoss< T >::init ( const Vector< T > &  y)
inlinevirtual

Implements spams::FISTA::Loss< T, Matrix< T > >.

Definition at line 695 of file fista.h.

References spams::Vector< T >::n().

+ Here is the call graph for this function:

template<typename T>
MultiLogLoss<T>& spams::FISTA::MultiLogLoss< T >::operator= ( const MultiLogLoss< T > &  dict)
private
template<typename T>
virtual void spams::FISTA::MultiLogLoss< T >::var_fenchel ( const Matrix< T > &  W,
Matrix< T > &  grad1,
Matrix< T > &  grad2,
const bool  intercept 
) const
inlinevirtual

Member Data Documentation

template<typename T>
const AbstractMatrixB<T>* spams::FISTA::MultiLogLoss< T >::_X
private

Definition at line 793 of file fista.h.

template<typename T>
Vector<int> spams::FISTA::MultiLogLoss< T >::_y
private

Definition at line 794 of file fista.h.


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