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

An solution of Nicolai map; Update to a new solution with NR method; Compute some types of superpotential; Identify solutions. More...

#include <field_nicolai.hpp>

Inheritance diagram for Scalar:
Inheritance graph
[legend]

Public Member Functions

 Scalar ()
 Constructor of Scalar.
 
 Scalar (const int n1, const int n2, const VectorXi n3, const VectorXd n4, const SuperPotentialType t=SuperPotentialType::AlgebraA)
 Set Li, num_f, k, lambda, spt_type, and field configuration generated by Mersenne twistor with unit deviation.
 
 Scalar (const VectorXcd &v, const VectorXi n3, const VectorXd n4, const int num_field=1, const SuperPotentialType t=SuperPotentialType::AlgebraA)
 Generate from VectorXcd; Set num_f, k, lambda, and spt_type.
 
 Scalar (const Scalar &f, const VectorXcd &v)
 Set parameters identical to Scalar f; Configuration is given by VectorXcd.
 
 Scalar (const Scalar &f, const VectorXd &v)
 Set parameters identical to Scalar f; Configuration is given by VectorXd.
 
 ~Scalar ()
 Destructor of Scalar.
 
bool operator== (const Scalar &f)
 Is identical (Li, num_f, k, lambda, spt_type) ?
 
bool operator!= (const Scalar &f)
 Not identical (Li, num_f, k, lambda, spt_type) ?
 
bool is_identical (const Scalar &f) const
 Identify two solutions.
 
VectorXcd nrerr_svec () const
 Compute Vector for NR error (complex type)
 
Potential superpotential () const
 Compute superpotential (class Potential)
 
PotentialNR superpotential_nr () const
 Compute superpotential (class PotentialNR)
 
Scalar nr_loop (const Nicolai &nic)
 An iteration of NR method; Compute LU decompositon; Overwrite own members.
 
VectorXcd nr_error_vec (const Nicolai &nic) const
 Compute error of NR method for each momentum.
 
double nr_error (const Nicolai &nic) const
 Compute error of NR method.
 
void scl_output (const int in, const int num_sol, const int i, const int sign, const double err) const
 Output to file.
 
void show () const
 Output Li, k, lambda, field.
 
- 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

An solution of Nicolai map; Update to a new solution with NR method; Compute some types of superpotential; Identify solutions.

See also
Field
Potential
PotentialNR
NicolaiSol
SuperPotentialType

Definition at line 160 of file field_nicolai.hpp.

Constructor & Destructor Documentation

◆ Scalar() [1/5]

Scalar::Scalar ( )
inlineexplicit

Constructor of Scalar.

Definition at line 220 of file field_nicolai.hpp.

◆ Scalar() [2/5]

Scalar::Scalar ( const int n1,
const int n2,
const VectorXi n3,
const VectorXd n4,
const SuperPotentialType t = SuperPotentialType::AlgebraA )
inlineexplicit

Set Li, num_f, k, lambda, spt_type, and field configuration generated by Mersenne twistor with unit deviation.

Parameters
n1Set Li
n2Set num_f
n3Set k
n4Set lambda
tSet spt_type

Definition at line 232 of file field_nicolai.hpp.

◆ Scalar() [3/5]

Scalar::Scalar ( const VectorXcd & v,
const VectorXi n3,
const VectorXd n4,
const int num_field = 1,
const SuperPotentialType t = SuperPotentialType::AlgebraA )
inlineexplicit

Generate from VectorXcd; Set num_f, k, lambda, and spt_type.

Parameters
vSet Li and field
n3Set k
n4Set lambda
num_fieldSet num_f
tSet spt_type

Definition at line 249 of file field_nicolai.hpp.

◆ Scalar() [4/5]

Scalar::Scalar ( const Scalar & f,
const VectorXcd & v )
inlineexplicit

Set parameters identical to Scalar f; Configuration is given by VectorXcd.

Definition at line 260 of file field_nicolai.hpp.

◆ Scalar() [5/5]

Scalar::Scalar ( const Scalar & f,
const VectorXd & v )
inlineexplicit

Set parameters identical to Scalar f; Configuration is given by VectorXd.

Definition at line 270 of file field_nicolai.hpp.

◆ ~Scalar()

Scalar::~Scalar ( )
inline

Destructor of Scalar.

Definition at line 278 of file field_nicolai.hpp.

Member Function Documentation

◆ is_identical()

bool Scalar::is_identical ( const Scalar & f) const

Identify two solutions.

Parameters
fAnother configuration to be compared with this
Returns
if (identical) true; else false

Threshold: sol_id_maxval

Definition at line 109 of file field_nicolai.cpp.

◆ nr_error()

double Scalar::nr_error ( const Nicolai & nic) const
inline

Compute error of NR method.

Parameters
nicNicolai map
Returns
Error estimation of NR method; nr_error_vec.norm()

Definition at line 350 of file field_nicolai.hpp.

◆ nr_error_vec()

VectorXcd Scalar::nr_error_vec ( const Nicolai & nic) const

Compute error of NR method for each momentum.

Parameters
nicNicolai map
Returns
Error estimation of NR method for each momentum

Definition at line 344 of file field_nicolai.cpp.

◆ nr_loop()

Scalar Scalar::nr_loop ( const Nicolai & nic)

An iteration of NR method; Compute LU decompositon; Overwrite own members.

Parameters
nicNicolai map
Returns
New configuration of scalar solution

Definition at line 335 of file field_nicolai.cpp.

◆ nrerr_svec()

VectorXcd Scalar::nrerr_svec ( ) const

Compute Vector for NR error (complex type)

See also
NR_error
Nicolai
PotentialNR

Definition at line 115 of file field_nicolai.cpp.

◆ operator!=()

Not identical (Li, num_f, k, lambda, spt_type) ?

Definition at line 294 of file field_nicolai.hpp.

◆ operator==()

bool Scalar::operator== ( const Scalar & f)
inline

Is identical (Li, num_f, k, lambda, spt_type) ?

Definition at line 285 of file field_nicolai.hpp.

◆ scl_output()

void Scalar::scl_output ( const int in,
const int num_sol,
const int i,
const int sign,
const double err ) const

Output to file.

Parameters
inID number of the Nicolai map
num_solNumber of solutions
iID number of the solution
signSign determinant
errError of NR method

Definition at line 352 of file field_nicolai.cpp.

◆ show()

void Scalar::show ( ) const
virtual

Output Li, k, lambda, field.

Reimplemented from Field.

Definition at line 411 of file field_nicolai.cpp.

◆ superpotential()

Potential Scalar::superpotential ( ) const

Compute superpotential (class Potential)

See also
Potential

Definition at line 188 of file field_nicolai.cpp.

◆ superpotential_nr()

PotentialNR Scalar::superpotential_nr ( ) const

Compute superpotential (class PotentialNR)

See also
PotentialNR

Definition at line 316 of file field_nicolai.cpp.


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