LORENE
Scalar mathematics

() More...

Functions

Scalar Lorene::operator+ (const Scalar &)
 
Scalar Lorene::operator- (const Scalar &)
 - Scalar More...
 
Scalar Lorene::operator+ (const Scalar &, const Scalar &)
 Scalar + Scalar. More...
 
Scalar Lorene::operator+ (const Scalar &, const Mtbl &)
 Scalar + Mbtl. More...
 
Scalar Lorene::operator+ (const Mtbl &, const Scalar &)
 Mtbl + Scalar. More...
 
Scalar Lorene::operator+ (const Scalar &, double)
 Scalar + double. More...
 
Scalar Lorene::operator+ (double, const Scalar &)
 double + Scalar More...
 
Scalar Lorene::operator+ (const Scalar &, int)
 Scalar + int. More...
 
Scalar Lorene::operator+ (int, const Scalar &)
 int + Scalar More...
 
Scalar Lorene::operator- (const Scalar &, const Scalar &)
 Scalar - Scalar. More...
 
Scalar Lorene::operator- (const Scalar &, const Mtbl &)
 Scalar - Mbtl. More...
 
Scalar Lorene::operator- (const Mtbl &, const Scalar &)
 Mtbl - Scalar. More...
 
Scalar Lorene::operator- (const Scalar &, double)
 Scalar - double. More...
 
Scalar Lorene::operator- (double, const Scalar &)
 double - Scalar More...
 
Scalar Lorene::operator- (const Scalar &, int)
 Scalar - int. More...
 
Scalar Lorene::operator- (int, const Scalar &)
 int - Scalar More...
 
Scalar Lorene::operator* (const Scalar &, const Scalar &)
 Scalar * Scalar. More...
 
Scalar Lorene::operator% (const Scalar &, const Scalar &)
 Scalar * Scalar with desaliasing. More...
 
Scalar Lorene::operator| (const Scalar &, const Scalar &)
 Scalar * Scalar with desaliasing only in r. More...
 
Scalar Lorene::operator* (const Mtbl &, const Scalar &)
 Mtbl * Scalar. More...
 
Scalar Lorene::operator* (const Scalar &, const Mtbl &)
 Scalar * Mtbl. More...
 
Scalar Lorene::operator* (const Scalar &, double)
 Scalar * double. More...
 
Scalar Lorene::operator* (double, const Scalar &)
 double * Scalar More...
 
Scalar Lorene::operator* (const Scalar &, int)
 Scalar * int. More...
 
Scalar Lorene::operator* (int, const Scalar &)
 int * Scalar More...
 
Scalar Lorene::operator/ (const Scalar &, const Scalar &)
 Scalar / Scalar. More...
 
Scalar Lorene::operator/ (const Scalar &, double)
 Scalar / double. More...
 
Scalar Lorene::operator/ (double, const Scalar &)
 double / Scalar More...
 
Scalar Lorene::operator/ (const Scalar &, int)
 Scalar / int. More...
 
Scalar Lorene::operator/ (int, const Scalar &)
 int / Scalar More...
 
Scalar Lorene::operator/ (const Scalar &, const Mtbl &)
 Scalar / Mtbl. More...
 
Scalar Lorene::operator/ (const Mtbl &, const Scalar &)
 Mtbl / Scalar. More...
 
Scalar Lorene::sin (const Scalar &)
 Sine. More...
 
Scalar Lorene::cos (const Scalar &)
 Cosine. More...
 
Scalar Lorene::tan (const Scalar &)
 Tangent. More...
 
Scalar Lorene::asin (const Scalar &)
 Arcsine. More...
 
Scalar Lorene::acos (const Scalar &)
 Arccosine. More...
 
Scalar Lorene::atan (const Scalar &)
 Arctangent. More...
 
Scalar Lorene::exp (const Scalar &)
 Exponential. More...
 
Scalar Lorene::Heaviside (const Scalar &)
 Heaviside function. More...
 
Scalar Lorene::log (const Scalar &)
 Neperian logarithm. More...
 
Scalar Lorene::log10 (const Scalar &)
 Basis 10 logarithm. More...
 
Scalar Lorene::sqrt (const Scalar &)
 Square root. More...
 
Scalar Lorene::racine_cubique (const Scalar &)
 Cube root. More...
 
Scalar Lorene::pow (const Scalar &, int)
 Power ${\tt Scalar}^{\tt int}$. More...
 
Scalar Lorene::pow (const Scalar &, double)
 Power ${\tt Scalar}^{\tt double}$. More...
 
Scalar Lorene::abs (const Scalar &)
 Absolute value. More...
 
double Lorene::totalmax (const Scalar &)
 Maximum values of a Scalar in each domain. More...
 
double Lorene::totalmin (const Scalar &)
 Minimum values of a Scalar in each domain. More...
 
Tbl Lorene::max (const Scalar &)
 Maximum values of a Scalar in each domain. More...
 
Tbl Lorene::min (const Scalar &)
 Minimum values of a Scalar in each domain. More...
 
Tbl Lorene::norme (const Scalar &)
 Sums of the absolute values of all the values of the Scalar in each domain. More...
 
Tbl Lorene::diffrel (const Scalar &a, const Scalar &b)
 Relative difference between two Scalar (norme version). More...
 
Tbl Lorene::diffrelmax (const Scalar &a, const Scalar &b)
 Relative difference between two Scalar (max version). More...
 
void Lorene::exp_filter_ylm_all_domains (Scalar &ss, int p, double alpha=-16.)
 Applies an exponential filter in angular directions in all domains. More...
 
void Lorene::exp_filter_ylm_all_domains (Scalar &ss, int p_tet, int p_phi, double alpha=-16.)
 Applies an exponential filter in angular directions in all domains. More...
 

Detailed Description

()

Function Documentation

◆ abs()

Scalar Lorene::abs ( const Scalar ci)

Absolute value.

Definition at line 526 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ acos()

Scalar Lorene::acos ( const Scalar ci)

Arccosine.

Definition at line 202 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ asin()

Scalar Lorene::asin ( const Scalar ci)

Arcsine.

Definition at line 170 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ atan()

Scalar Lorene::atan ( const Scalar ci)

Arctangent.

Definition at line 234 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ cos()

Scalar Lorene::cos ( const Scalar ci)

Cosine.

Definition at line 107 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ diffrel()

Tbl Lorene::diffrel ( const Scalar a,
const Scalar b 
)

Relative difference between two Scalar (norme version).

Returns
1-D Tbl of size the number of domains, the elements of which are norme[a(l)-b(l)]/norme[b(l)] if b(l)!=0 and norme[a(l)-b(l)] if b(l)=0 , where a(l) and b(l) denote symbolically the values of a and b
in domain no. l .

Definition at line 698 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ diffrelmax()

Tbl Lorene::diffrelmax ( const Scalar a,
const Scalar b 
)

Relative difference between two Scalar (max version).

Returns
1-D Tbl of size the number of domains, the elements of which are max[abs(a(l)-b(l))]/max[abs(b(l))] if b(l)!=0 and max[abs(a(l)-b(l))] if b(l)=0 , where a(l) and b(l) denote symbolically the values of a and b
in domain no. l .

Definition at line 733 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ exp()

Scalar Lorene::exp ( const Scalar ci)

Exponential.

Definition at line 326 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ exp_filter_ylm_all_domains() [1/2]

void Lorene::exp_filter_ylm_all_domains ( Scalar ss,
int  p,
double  alpha = -16. 
)

Applies an exponential filter in angular directions in all domains.

(see Scalar:exponential_filter_ylm ).

Definition at line 248 of file scalar_exp_filter.C.

References Lorene::Scalar::exponential_filter_ylm(), Lorene::Map::get_mg(), Lorene::Tensor::get_mp(), and Lorene::Mg3d::get_nzone().

◆ exp_filter_ylm_all_domains() [2/2]

void Lorene::exp_filter_ylm_all_domains ( Scalar ss,
int  p_tet,
int  p_phi,
double  alpha = -16. 
)

Applies an exponential filter in angular directions in all domains.

(see Scalar:exponential_filter_ylm_phi ).

◆ Heaviside()

Scalar Lorene::Heaviside ( const Scalar ci)

Heaviside function.

Definition at line 358 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ log()

Scalar Lorene::log ( const Scalar ci)

Neperian logarithm.

Definition at line 388 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ log10()

Scalar Lorene::log10 ( const Scalar ci)

Basis 10 logarithm.

Definition at line 421 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ max()

Tbl Lorene::max ( const Scalar ci)

Maximum values of a Scalar in each domain.

Returns
1-D Tbl of size the number of domains, the elements of which are the set of the maximum values in each domain.

Definition at line 614 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ min()

Tbl Lorene::min ( const Scalar ci)

Minimum values of a Scalar in each domain.

Returns
1-D Tbl of size the number of domains, the elements of which are the set of the minimum values in each domain.

Definition at line 642 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ norme()

Tbl Lorene::norme ( const Scalar ci)

Sums of the absolute values of all the values of the Scalar in each domain.

Returns
1-D Tbl of size the number of domains, the elements of which are the set of the sums of the absolute values in each domain.

Definition at line 670 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ operator%()

Scalar Lorene::operator% ( const Scalar c1,
const Scalar c2 
)

Scalar * Scalar with desaliasing.

Definition at line 460 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator*() [1/7]

Scalar Lorene::operator* ( const Scalar c1,
const Scalar c2 
)

Scalar * Scalar.

Definition at line 426 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator*() [2/7]

Scalar Lorene::operator* ( const Mtbl mi,
const Scalar c1 
)

Mtbl * Scalar.

Definition at line 530 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator*() [3/7]

Scalar Lorene::operator* ( const Scalar c1,
const Mtbl mi 
)

Scalar * Mtbl.

Definition at line 564 of file scalar_arithm.C.

◆ operator*() [4/7]

Scalar Lorene::operator* ( const Scalar t1,
double  x 
)

Scalar * double.

Definition at line 608 of file scalar_arithm.C.

◆ operator*() [5/7]

Scalar Lorene::operator* ( double  a,
const Scalar c1 
)

double * Scalar

Definition at line 571 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator*() [6/7]

Scalar Lorene::operator* ( const Scalar t1,
int  m 
)

Scalar * int.

Definition at line 615 of file scalar_arithm.C.

◆ operator*() [7/7]

Scalar Lorene::operator* ( int  m,
const Scalar t1 
)

int * Scalar

Definition at line 622 of file scalar_arithm.C.

◆ operator+() [1/8]

Scalar Lorene::operator+ ( const Scalar ci)

Definition at line 89 of file scalar_arithm.C.

◆ operator+() [2/8]

Scalar Lorene::operator+ ( const Scalar c1,
const Scalar c2 
)

Scalar + Scalar.

Definition at line 116 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator+() [3/8]

Scalar Lorene::operator+ ( const Scalar c1,
const Mtbl mi 
)

Scalar + Mbtl.

Definition at line 166 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator+() [4/8]

Scalar Lorene::operator+ ( const Mtbl mi,
const Scalar c1 
)

Mtbl + Scalar.

Definition at line 203 of file scalar_arithm.C.

◆ operator+() [5/8]

Scalar Lorene::operator+ ( const Scalar t1,
double  x 
)

Scalar + double.

Definition at line 210 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator+() [6/8]

Scalar Lorene::operator+ ( double  x,
const Scalar t1 
)

double + Scalar

Definition at line 244 of file scalar_arithm.C.

◆ operator+() [7/8]

Scalar Lorene::operator+ ( const Scalar t1,
int  m 
)

Scalar + int.

Definition at line 251 of file scalar_arithm.C.

◆ operator+() [8/8]

Scalar Lorene::operator+ ( int  m,
const Scalar t1 
)

int + Scalar

Definition at line 258 of file scalar_arithm.C.

◆ operator-() [1/8]

Scalar Lorene::operator- ( const Scalar ci)

- Scalar

Definition at line 93 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator-() [2/8]

Scalar Lorene::operator- ( const Scalar c1,
const Scalar c2 
)

Scalar - Scalar.

Definition at line 273 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator-() [3/8]

Scalar Lorene::operator- ( const Scalar t1,
const Mtbl mi 
)

Scalar - Mbtl.

Definition at line 323 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator-() [4/8]

Scalar Lorene::operator- ( const Mtbl mi,
const Scalar t1 
)

Mtbl - Scalar.

Definition at line 356 of file scalar_arithm.C.

◆ operator-() [5/8]

Scalar Lorene::operator- ( const Scalar t1,
double  x 
)

Scalar - double.

Definition at line 363 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator-() [6/8]

Scalar Lorene::operator- ( double  x,
const Scalar t1 
)

double - Scalar

Definition at line 396 of file scalar_arithm.C.

◆ operator-() [7/8]

Scalar Lorene::operator- ( const Scalar t1,
int  m 
)

Scalar - int.

Definition at line 403 of file scalar_arithm.C.

◆ operator-() [8/8]

Scalar Lorene::operator- ( int  m,
const Scalar t1 
)

int - Scalar

Definition at line 410 of file scalar_arithm.C.

◆ operator/() [1/7]

Scalar Lorene::operator/ ( const Scalar c1,
const Scalar c2 
)

Scalar / Scalar.

Definition at line 640 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator/() [2/7]

Scalar Lorene::operator/ ( const Scalar c1,
double  x 
)

Scalar / double.

Definition at line 744 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator/() [3/7]

Scalar Lorene::operator/ ( double  x,
const Scalar c2 
)

double / Scalar

Definition at line 778 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator/() [4/7]

Scalar Lorene::operator/ ( const Scalar c1,
int  m 
)

Scalar / int.

Definition at line 813 of file scalar_arithm.C.

◆ operator/() [5/7]

Scalar Lorene::operator/ ( int  m,
const Scalar c2 
)

int / Scalar

Definition at line 822 of file scalar_arithm.C.

◆ operator/() [6/7]

Scalar Lorene::operator/ ( const Scalar c1,
const Mtbl mi 
)

Scalar / Mtbl.

Definition at line 678 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator/() [7/7]

Scalar Lorene::operator/ ( const Mtbl mi,
const Scalar c2 
)

Mtbl / Scalar.

Definition at line 710 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator|()

Scalar Lorene::operator| ( const Scalar c1,
const Scalar c2 
)

Scalar * Scalar with desaliasing only in r.

Definition at line 494 of file scalar_arithm.C.

References Lorene::Scalar::get_etat().

◆ pow() [1/2]

Scalar Lorene::pow ( const Scalar ci,
int  n 
)

Power ${\tt Scalar}^{\tt int}$.

Definition at line 454 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ pow() [2/2]

Scalar Lorene::pow ( const Scalar ci,
double  x 
)

Power ${\tt Scalar}^{\tt double}$.

Definition at line 490 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ racine_cubique()

Scalar Lorene::racine_cubique ( const Scalar ci)

Cube root.

Definition at line 296 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ sin()

Scalar Lorene::sin ( const Scalar ci)

Sine.

Definition at line 75 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ sqrt()

Scalar Lorene::sqrt ( const Scalar ci)

Square root.

Definition at line 266 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ tan()

Scalar Lorene::tan ( const Scalar ci)

Tangent.

Definition at line 139 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ totalmax()

double Lorene::totalmax ( const Scalar ci)

Maximum values of a Scalar in each domain.

Returns
1-D Tbl of size the number of domains, the elements of which are the set of the maximum values in each domain.

Definition at line 556 of file scalar_math.C.

References Lorene::Scalar::get_etat().

◆ totalmin()

double Lorene::totalmin ( const Scalar ci)

Minimum values of a Scalar in each domain.

Returns
1-D Tbl of size the number of domains, the elements of which are the set of the minimum values in each domain.

Definition at line 585 of file scalar_math.C.

References Lorene::Scalar::get_etat().