iRoCS Toolbox  1.1.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
svt::Solver_NU< FV, KF > Class Template Reference

#include <Solver_NU.hh>

Inheritance diagram for svt::Solver_NU< FV, KF >:
Collaboration diagram for svt::Solver_NU< FV, KF >:

Public Member Functions

 Solver_NU ()
 
void Solve (int l, const Kernel< FV, KF > &Q, const double *b, const schar *y, double *alpha, double Cp, double Cn, double eps, SolutionInfo *si, int shrinking, ProgressReporter *progressReporter)
 

Protected Types

enum  { LOWER_BOUND, UPPER_BOUND, FREE }
 

Protected Member Functions

double get_C (int i)
 
bool is_free (int i)
 
bool is_lower_bound (int i)
 
bool is_upper_bound (int i)
 
void reconstruct_gradient ()
 
void swap_index (int i, int j)
 
void update_alpha_status (int i)
 

Protected Attributes

int * active_set
 
int active_size
 
double * alpha
 
char * alpha_status
 
double * b
 
double Cn
 
double Cp
 
double eps
 
double * G
 
double * G_bar
 
int l
 
const Kernel< FV, KF > * Q
 
bool unshrinked
 
schary
 

Detailed Description

template<typename FV, typename KF>
class svt::Solver_NU< FV, KF >

Definition at line 62 of file Solver_NU.hh.

Member Enumeration Documentation

◆ anonymous enum

template<typename FV, typename KF>
anonymous enum
protectedinherited
Enumerator
LOWER_BOUND 
UPPER_BOUND 
FREE 

Definition at line 135 of file Solver.hh.

Constructor & Destructor Documentation

◆ Solver_NU()

template<typename FV , typename KF >
svt::Solver_NU< FV, KF >::Solver_NU ( )
inline

Definition at line 65 of file Solver_NU.hh.

Member Function Documentation

◆ Solve()

template<typename FV , typename KF >
void svt::Solver_NU< FV, KF >::Solve ( int  l,
const Kernel< FV, KF > &  Q,
const double *  b,
const schar y,
double *  alpha,
double  Cp,
double  Cn,
double  eps,
SolutionInfo si,
int  shrinking,
ProgressReporter progressReporter 
)
inline

Definition at line 66 of file Solver_NU.hh.

◆ get_C()

template<typename FV, typename KF>
double svt::Solver< FV, KF >::get_C ( int  i)
inlineprotectedinherited

Definition at line 147 of file Solver.hh.

Referenced by svt::Solver< FV, KF >::update_alpha_status().

◆ update_alpha_status()

template<typename FV, typename KF>
void svt::Solver< FV, KF >::update_alpha_status ( int  i)
inlineprotectedinherited

Definition at line 151 of file Solver.hh.

◆ is_upper_bound()

template<typename FV, typename KF>
bool svt::Solver< FV, KF >::is_upper_bound ( int  i)
inlineprotectedinherited

Definition at line 159 of file Solver.hh.

◆ is_lower_bound()

template<typename FV, typename KF>
bool svt::Solver< FV, KF >::is_lower_bound ( int  i)
inlineprotectedinherited

Definition at line 160 of file Solver.hh.

◆ is_free()

template<typename FV, typename KF>
bool svt::Solver< FV, KF >::is_free ( int  i)
inlineprotectedinherited

Definition at line 161 of file Solver.hh.

◆ swap_index()

template<typename FV, typename KF>
void svt::Solver< FV, KF >::swap_index ( int  i,
int  j 
)
protectedinherited

◆ reconstruct_gradient()

template<typename FV, typename KF>
void svt::Solver< FV, KF >::reconstruct_gradient ( )
protectedinherited

Field Documentation

◆ active_size

template<typename FV, typename KF>
int svt::Solver< FV, KF >::active_size
protectedinherited

Definition at line 132 of file Solver.hh.

◆ y

template<typename FV, typename KF>
schar* svt::Solver< FV, KF >::y
protectedinherited

Definition at line 133 of file Solver.hh.

◆ G

template<typename FV, typename KF>
double* svt::Solver< FV, KF >::G
protectedinherited

Definition at line 134 of file Solver.hh.

◆ alpha_status

template<typename FV, typename KF>
char* svt::Solver< FV, KF >::alpha_status
protectedinherited

Definition at line 136 of file Solver.hh.

◆ alpha

template<typename FV, typename KF>
double* svt::Solver< FV, KF >::alpha
protectedinherited

Definition at line 137 of file Solver.hh.

◆ Q

template<typename FV, typename KF>
const Kernel<FV,KF>* svt::Solver< FV, KF >::Q
protectedinherited

Definition at line 138 of file Solver.hh.

Referenced by svt::Solver< FV, KF >::~Solver().

◆ eps

template<typename FV, typename KF>
double svt::Solver< FV, KF >::eps
protectedinherited

Definition at line 139 of file Solver.hh.

Referenced by svt::Solver< FV, KF >::~Solver().

◆ Cp

template<typename FV, typename KF>
double svt::Solver< FV, KF >::Cp
protectedinherited

Definition at line 140 of file Solver.hh.

Referenced by svt::Solver< FV, KF >::get_C(), and svt::Solver< FV, KF >::~Solver().

◆ Cn

template<typename FV, typename KF>
double svt::Solver< FV, KF >::Cn
protectedinherited

Definition at line 140 of file Solver.hh.

Referenced by svt::Solver< FV, KF >::get_C(), and svt::Solver< FV, KF >::~Solver().

◆ b

template<typename FV, typename KF>
double* svt::Solver< FV, KF >::b
protectedinherited

Definition at line 141 of file Solver.hh.

◆ active_set

template<typename FV, typename KF>
int* svt::Solver< FV, KF >::active_set
protectedinherited

Definition at line 142 of file Solver.hh.

◆ G_bar

template<typename FV, typename KF>
double* svt::Solver< FV, KF >::G_bar
protectedinherited

Definition at line 143 of file Solver.hh.

◆ l

template<typename FV, typename KF>
int svt::Solver< FV, KF >::l
protectedinherited

Definition at line 144 of file Solver.hh.

Referenced by svt::Solver< FV, KF >::~Solver().

◆ unshrinked

template<typename FV, typename KF>
bool svt::Solver< FV, KF >::unshrinked
protectedinherited

Definition at line 145 of file Solver.hh.


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