ERKALE
ERKALE - DFT from Hel
 All Classes Functions Variables Friends Pages
Public Member Functions | Private Attributes | List of all members
FMLoc Class Reference

Fourth moment localization. More...

#include <localization.h>

Inheritance diagram for FMLoc:
UnitaryFunction

Public Member Functions

 FMLoc (const BasisSet &basis, const arma::mat &C, int n, bool verbose=true, bool delocalize=false)
 Constructor. n gives the penalty power to use.
 
 ~FMLoc ()
 Destructor.
 
FMLoccopy () const
 Copy.
 
void set_n (int n)
 Reset penalty.
 
double cost_func (const arma::cx_mat &W)
 Evaluate cost function.
 
arma::cx_mat cost_der (const arma::cx_mat &W)
 Evaluate derivative of cost function.
 
void cost_func_der (const arma::cx_mat &W, double &f, arma::cx_mat &der)
 Evaluate cost function and its derivative.
 
- Public Member Functions inherited from UnitaryFunction
 UnitaryFunction (int q, bool max)
 Constructor. More...
 
virtual ~UnitaryFunction ()
 Destructor.
 
virtual void setW (const arma::cx_mat &W)
 Set matrix.
 
arma::cx_mat getW () const
 Get matrix.
 
int getq () const
 Get q.
 
double getf () const
 Get function value.
 
int getsign () const
 Get sign.
 
virtual std::string legend () const
 Get status legend. More...
 
virtual std::string status (bool lfmt=false)
 Print status information, possibly in a longer format. More...
 
virtual bool converged ()
 Check convergence. More...
 

Private Attributes

int n
 Penalty.
 
arma::mat rfour
 r^4 contributions
 
std::vector< arma::mat > rrsq
 rr^2 matrices
 
std::vector< std::vector
< arma::mat > > 
rr
 rr matrices
 
arma::mat rsq
 and the r^2 matrix
 
std::vector< arma::mat > rmat
 r matrices
 

Additional Inherited Members

- Protected Attributes inherited from UnitaryFunction
arma::cx_mat W
 Present matrix.
 
double f
 Present value.
 
int q
 Order in W.
 
int sign
 Maximization or minimization?
 

Detailed Description

Fourth moment localization.


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