Bridge++  Ver. 2.0.2
Math_Sign_Zolotarev Class Reference

Determination of Zolotarev coefficients. More...

#include <math_Sign_Zolotarev.h>

Public Member Functions

 Math_Sign_Zolotarev (const int Np, const double bmax)
 
void get_sign_parameters (std::vector< double > &cl, std::vector< double > &bl)
 
double sign (const double x)
 

Static Public Attributes

static const std::string class_name = "Math_Sign_Zolotarev"
 

Protected Attributes

Bridge::VerboseLevel m_vl
 

Private Member Functions

void set_sign_parameters ()
 
void poly_Zolotarev (const double bmax, double &UK)
 
void Jacobi_elliptic (const double uu, const double emmc, double &sn, double &cn, double &dn)
 

Private Attributes

int m_Np
 
double m_bmax
 
std::vector< double > m_cl
 
std::vector< double > m_bl
 

Detailed Description

Determination of Zolotarev coefficients.

This class determines the Zolotarev's optimal coefficients of partial fractional approximation to 1/sqrt(x). The present implementation makes use of the code in Numerical Recipes, and thus cannot be public. To be replaced. [28 Dec 2011 H.Matsufuru] Replaced with a GSL based code. [19 Jun 2013 S.Ueda]

Definition at line 36 of file math_Sign_Zolotarev.h.

Constructor & Destructor Documentation

◆ Math_Sign_Zolotarev()

Math_Sign_Zolotarev::Math_Sign_Zolotarev ( const int  Np,
const double  bmax 
)
inline

Definition at line 51 of file math_Sign_Zolotarev.h.

Member Function Documentation

◆ get_sign_parameters()

void Math_Sign_Zolotarev::get_sign_parameters ( std::vector< double > &  cl,
std::vector< double > &  bl 
)

Definition at line 25 of file math_Sign_Zolotarev.cpp.

◆ Jacobi_elliptic()

void Math_Sign_Zolotarev::Jacobi_elliptic ( const double  uu,
const double  emmc,
double &  sn,
double &  cn,
double &  dn 
)
private

Definition at line 195 of file math_Sign_Zolotarev.cpp.

◆ poly_Zolotarev()

void Math_Sign_Zolotarev::poly_Zolotarev ( const double  bmax,
double &  UK 
)
private

Definition at line 87 of file math_Sign_Zolotarev.cpp.

◆ set_sign_parameters()

void Math_Sign_Zolotarev::set_sign_parameters ( )
private

Definition at line 51 of file math_Sign_Zolotarev.cpp.

◆ sign()

double Math_Sign_Zolotarev::sign ( const double  x)

Definition at line 71 of file math_Sign_Zolotarev.cpp.

Member Data Documentation

◆ class_name

const std::string Math_Sign_Zolotarev::class_name = "Math_Sign_Zolotarev"
static

Definition at line 39 of file math_Sign_Zolotarev.h.

◆ m_bl

std::vector<double> Math_Sign_Zolotarev::m_bl
private

Definition at line 48 of file math_Sign_Zolotarev.h.

◆ m_bmax

double Math_Sign_Zolotarev::m_bmax
private

Definition at line 46 of file math_Sign_Zolotarev.h.

◆ m_cl

std::vector<double> Math_Sign_Zolotarev::m_cl
private

Definition at line 47 of file math_Sign_Zolotarev.h.

◆ m_Np

int Math_Sign_Zolotarev::m_Np
private

Definition at line 45 of file math_Sign_Zolotarev.h.

◆ m_vl

Bridge::VerboseLevel Math_Sign_Zolotarev::m_vl
protected

Definition at line 42 of file math_Sign_Zolotarev.h.


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