LandauGinzburg
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PotentialNR Class Reference

Compute Matrix and Vector for NR method. More...

#include <field_potential.hpp>

Inheritance diagram for PotentialNR:
Inheritance graph
[legend]

Public Member Functions

 PotentialNR ()
 Constructor of PotentialNR.
 
 PotentialNR (const int n1, const int n2, const Distribution n3=Distribution::Zero_conf)
 Set Li, num_f, and field-field2-field3 with zeros.
 
 PotentialNR (const int num_field, const MatrixXcd &m1, const MatrixXcd &m2, const MatrixXcd &m3)
 Set Li, num_f, and field-field2-field3.
 
 ~PotentialNR ()
 Destructor of PotentialNR.
 
bool operator== (const PotentialNR &p)
 Is identical (Li, num_f) ?
 
bool operator!= (const PotentialNR &p)
 Not identical (Li, num_f) ?
 
VectorXd nr_pvec () const
 Compute Vector for NR method (Real type)
 
MatrixXd nr_mat () const
 Compute Matrix for NR method (Real type)
 
VectorXcd nrerr_pvec () const
 Compute Vector for NR error estimate (complex type)
 
void show () const
 Output Li, field, field2, field3.
 
- Public Member Functions inherited from Potential
 Potential ()
 Constructor of Potential.
 
 Potential (const int n1, const int n2, const Distribution n3=Distribution::Zero_conf)
 Set Li, num_f, and field.
 
 Potential (const MatrixXcd &m)
 Set Li and field from MatrixXcd, but num_f such as num_f(num_f+1)/2==field.cols()
 
 Potential (const MatrixXcd &m, const int num_field)
 Set Li and field from MatrixXcd, but num_f=num_field
 
virtual ~Potential ()
 Destructor of Potential.
 
virtual bool operator== (const Potential &p)
 Is identical (Li, num_f) ?
 
virtual bool operator!= (const Potential &p)
 Not identical (Li, num_f) ?
 
int sign_det (const int debug=0) const
 Sign determinant with a fast algorithm (num_f < 4)
 
int sign_det4multifield (const int debug=0) const
 Sign determinant for mutli-superfield.
 
- Public Member Functions inherited from Field
 Field ()
 Constructor of Field.
 
 Field (const int n1, const int n2)
 Set Li=n1 and num_f=n2.
 
 Field (const int n1, const int n2, const Distribution n3, const double mean=0.0, const double dev=1.0)
 Set Li, num_f, and field.
 
 Field (const int n1, const int n2, const int n3, const Distribution n4, const double mean=0.0, const double dev=1.0)
 Set Li, num_f, and field; n3 is.
 
 Field (const VectorXcd &v, const int num_field=1)
 Set Li, num_f, and field from VectorXcd.
 
 Field (const VectorXd &v, const int num_field)
 Set Li and field from VectorXd; num_f!=field.cols()
 
 Field (const MatrixXcd &m)
 Set Li, num_f, and field from MatrixXcd.
 
 Field (const MatrixXcd &m, const int num_field)
 Set Li and field from MatrixXcd, but num_f=num_field
 
virtual ~Field ()
 Destructor of Field.
 
MatrixXcd conf () const
 
VectorXcd conf (const int n) const
 
VectorXd conf_real (const int n) const
 
VectorXd conf_imag (const int n) const
 
virtual bool operator== (const Field &f)
 Is identical (Li, num_f) ?
 
virtual bool operator!= (const Field &f)
 Not identical (Li, num_f) ?
 
virtual Fieldoperator*= (const double n)
 Multiply by a real number n.
 
virtual Fieldoperator/= (const double n)
 Devide by a real number n.
 
Field conv (const int n1, const int n2) const
 Convolution field(:,n1)*field(:,n2)
 
Field conjconv (const int n) const
 Convolution field(:,n)*conf(field(:,n))
 
Field conv_pw (const int pw, const int n=0) const
 Convolution field(:,n)*field(:,n)*...*field(:,n)
 
Field combine_with (const Field &f)
 Combine with another Field object; Mutate field (Li and num_f are unchaged) except for the case that field is empty.
 

Additional Inherited Members

- Static Public Member Functions inherited from Field
static Field Zero (const int n1, const int n2)
 
static Field Zero (const int n1, const int n2, const int n3)
 
static Field Gauss (const int n1, const int n2, const double mean=0.0, const double dev=1.0)
 
static Field Gauss (const int n1, const int n2, const int n3, const double mean=0.0, const double dev=1.0)
 
static Field GaussL (const int n1, const int n2, const double mean=0.0)
 
static Field GaussL (const int n1, const int n2, const int n3, const double mean=0.0)
 
static Field GaussMT (const int n1, const int n2, const double mean=0.0, const double dev=1.0)
 
static Field GaussMT (const int n1, const int n2, const int n3, const double mean=0.0, const double dev=1.0)
 
static Field GaussMTL (const int n1, const int n2, const double mean=0.0)
 
static Field GaussMTL (const int n1, const int n2, const int n3, const double mean=0.0)
 
static Field Vector (const VectorXcd &v, const int num_field=1)
 
static Field Matrix (const MatrixXcd &m)
 
static Field Matrix (const MatrixXcd &m, const int num_field)
 
- Protected Member Functions inherited from Field
void setgauss (const int num_col, const double mean=0.0, const double dev=1.0)
 
void setgaussl (const int num_col, const double mean=0.0)
 
void setgaussmt (const int num_col, const double mean=0.0, const double dev=1.0)
 
void setgaussmtl (const int num_col, const double mean=0.0)
 
void setconf (const int num_col, const Distribution n, const double mean=0.0, const double dev=1.0)
 
void setconf (const VectorXcd &v, const int num_field=1)
 
void setconf (const VectorXd &v, const int num_field)
 
void setconf (const MatrixXcd &m)
 
void setconf (const MatrixXcd &m, const int num_field)
 
MatrixXcd vector2matrix (const int n) const
 
MatrixXcd field2matrix (const int n) const
 
MatrixXcd dfield2matrix (const int n) const
 
- Protected Attributes inherited from Field
int Li
 Physical box size, N_0=N_1.
 
int num_f
 Number of superfields.
 
MatrixXcd field
 Superfields.
 

Detailed Description

Compute Matrix and Vector for NR method.

field: partial_i partial_j W({A}) (p) with i <= j

field2: partial_i W({A}) (p)

field3: sum_j A_j partial_i partial_j W({A}) (p)

See also
Field
Potential
Nicolai
Scalar
Scalar::nr_loop

Definition at line 214 of file field_potential.hpp.

Constructor & Destructor Documentation

◆ PotentialNR() [1/3]

PotentialNR::PotentialNR ( )
inlineexplicit

Constructor of PotentialNR.

Definition at line 223 of file field_potential.hpp.

◆ PotentialNR() [2/3]

PotentialNR::PotentialNR ( const int n1,
const int n2,
const Distribution n3 = Distribution::Zero_conf )
inlineexplicit

Set Li, num_f, and field-field2-field3 with zeros.

Parameters
n1Set Li
n2Set num_f; n2(n2+1)/2==field.cols(); n2==field2.cols()==field3.cols()
n3Set normal distribution type

Definition at line 233 of file field_potential.hpp.

◆ PotentialNR() [3/3]

PotentialNR::PotentialNR ( const int num_field,
const MatrixXcd & m1,
const MatrixXcd & m2,
const MatrixXcd & m3 )
inlineexplicit

Set Li, num_f, and field-field2-field3.

Parameters
num_fieldSet num_f;
m1Set field;
m2Set field2;
m3Set field3;

Definition at line 248 of file field_potential.hpp.

◆ ~PotentialNR()

PotentialNR::~PotentialNR ( )
inline

Destructor of PotentialNR.

Definition at line 264 of file field_potential.hpp.

Member Function Documentation

◆ nr_mat()

MatrixXd PotentialNR::nr_mat ( ) const

Compute Matrix for NR method (Real type)

See also
Nicolai
Scalar
Scalar::nr_loop

Definition at line 404 of file field_potential.cpp.

◆ nr_pvec()

VectorXd PotentialNR::nr_pvec ( ) const

Compute Vector for NR method (Real type)

See also
Nicolai
Scalar
Scalar::nr_loop

Definition at line 454 of file field_potential.cpp.

◆ nrerr_pvec()

VectorXcd PotentialNR::nrerr_pvec ( ) const

Compute Vector for NR error estimate (complex type)

See also
Nicolai
Scalar
Scalar::nr_error

Definition at line 471 of file field_potential.cpp.

◆ operator!=()

Not identical (Li, num_f) ?

Definition at line 275 of file field_potential.hpp.

◆ operator==()

Is identical (Li, num_f) ?

Definition at line 270 of file field_potential.hpp.

◆ show()

void PotentialNR::show ( ) const
virtual

Output Li, field, field2, field3.

Reimplemented from Potential.

Definition at line 482 of file field_potential.cpp.


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