LORENE
Tensor arithmetics

() More...

Functions

Tensor Lorene::operator+ (const Tensor &)
 
Tensor Lorene::operator- (const Tensor &)
 - Tensor More...
 
Tensor Lorene::operator+ (const Tensor &a, const Tensor &b)
 Tensor + Tensor. More...
 
Scalar Lorene::operator+ (const Tensor &a, const Scalar &b)
 Tensor + Scalar. The Tensor must be of valence 0. More...
 
Scalar Lorene::operator+ (const Scalar &a, const Tensor &b)
 Scalar + Tensor. The Tensor must be of valence 0. More...
 
Tensor Lorene::operator- (const Tensor &a, const Tensor &b)
 Tensor - Tensor. More...
 
Scalar Lorene::operator- (const Tensor &a, const Scalar &b)
 Tensor - Scalar. The Tensor must be of valence 0. More...
 
Scalar Lorene::operator- (const Scalar &a, const Tensor &b)
 Scalar - Tensor. The Tensor must be of valence 0. More...
 
Tensor Lorene::operator* (const Scalar &a, const Tensor &b)
 Scalar * Tensor. More...
 
Tensor Lorene::operator* (const Tensor &a, const Scalar &b)
 Tensor * Scalar. More...
 
Tensor Lorene::operator* (double, const Tensor &)
 double * Tensor More...
 
Tensor Lorene::operator* (const Tensor &, double)
 Tensor * double. More...
 
Tensor Lorene::operator* (int, const Tensor &)
 int* Tensor More...
 
Tensor Lorene::operator* (const Tensor &, int)
 Tensor * int. More...
 
Tensor Lorene::operator/ (const Tensor &, const Scalar &)
 Tensor / Scalar. More...
 
Tensor Lorene::operator/ (const Tensor &, double)
 Tensor / double. More...
 
Tensor Lorene::operator/ (const Tensor &, int)
 Tensor / int. More...
 

Detailed Description

()

Function Documentation

◆ operator*() [1/6]

Tensor Lorene::operator* ( const Scalar a,
const Tensor b 
)

Scalar * Tensor.

Definition at line 191 of file tensor_arithm.C.

References Lorene::Scalar::get_etat(), and Lorene::Tensor::get_mp().

◆ operator*() [2/6]

Tensor Lorene::operator* ( const Tensor a,
const Scalar b 
)

Tensor * Scalar.

Definition at line 209 of file tensor_arithm.C.

◆ operator*() [3/6]

Tensor Lorene::operator* ( double  x,
const Tensor t 
)

◆ operator*() [4/6]

Tensor Lorene::operator* ( const Tensor t,
double  x 
)

Tensor * double.

Definition at line 231 of file tensor_arithm.C.

◆ operator*() [5/6]

Tensor Lorene::operator* ( int  m,
const Tensor t 
)

int* Tensor

Definition at line 235 of file tensor_arithm.C.

◆ operator*() [6/6]

Tensor Lorene::operator* ( const Tensor t,
int  m 
)

Tensor * int.

Definition at line 240 of file tensor_arithm.C.

◆ operator+() [1/4]

Tensor Lorene::operator+ ( const Tensor t)

Definition at line 77 of file tensor_arithm.C.

◆ operator+() [2/4]

◆ operator+() [3/4]

Scalar Lorene::operator+ ( const Tensor a,
const Scalar b 
)

Tensor + Scalar. The Tensor must be of valence 0.

Definition at line 123 of file tensor_arithm.C.

References Lorene::Tensor::cmp, Lorene::Tensor::get_mp(), and Lorene::Tensor::get_valence().

◆ operator+() [4/4]

Scalar Lorene::operator+ ( const Scalar a,
const Tensor b 
)

Scalar + Tensor. The Tensor must be of valence 0.

Definition at line 132 of file tensor_arithm.C.

References Lorene::Tensor::cmp, Lorene::Tensor::get_mp(), and Lorene::Tensor::get_valence().

◆ operator-() [1/4]

◆ operator-() [2/4]

◆ operator-() [3/4]

Scalar Lorene::operator- ( const Tensor a,
const Scalar b 
)

Tensor - Scalar. The Tensor must be of valence 0.

Definition at line 167 of file tensor_arithm.C.

References Lorene::Tensor::cmp, Lorene::Tensor::get_mp(), and Lorene::Tensor::get_valence().

◆ operator-() [4/4]

Scalar Lorene::operator- ( const Scalar a,
const Tensor b 
)

Scalar - Tensor. The Tensor must be of valence 0.

Definition at line 176 of file tensor_arithm.C.

References Lorene::Tensor::cmp, Lorene::Tensor::get_mp(), and Lorene::Tensor::get_valence().

◆ operator/() [1/3]

Tensor Lorene::operator/ ( const Tensor t1,
const Scalar s2 
)

Tensor / Scalar.

Definition at line 249 of file tensor_arithm.C.

References Lorene::Scalar::get_etat().

◆ operator/() [2/3]

Tensor Lorene::operator/ ( const Tensor t,
double  x 
)

◆ operator/() [3/3]

Tensor Lorene::operator/ ( const Tensor t,
int  m 
)

Tensor / int.

Definition at line 297 of file tensor_arithm.C.