Arcane  4.2.1.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::Real3 Class Reference

Class managing a 3-dimensional real vector. More...

#include </__w/arcaneframework.github.io/arcaneframework.github.io/framework/arccore/src/base/arccore/base/Real3.h>

Inheritance diagram for Arcane::Real3:
Collaboration diagram for Arcane::Real3:

Public Member Functions

constexpr __host__ __device__ Real3 ()
 Constructs the zero vector.
constexpr __host__ __device__ Real3 (Real ax, Real ay, Real az)
 Constructs the triplet (ax,ay,az).
 Real3 (const Real3 &f)=default
 Constructs a triplet identical to f.
constexpr __host__ __device__ Real3 (const Real3POD &f)
 Constructs a triplet identical to f.
constexpr __host__ __device__ Real3 (Real v)
 Constructs the instance with the triplet (v,v,v).
constexpr __host__ __device__ Real3 (const Real2 &f)
 Constructs a triplet identical to f.
constexpr __host__ __device__ Real3 (ConstArrayView< Real > av)
 Constructs the triplet (av[0], av[1], av[2]).
Real3operator= (const Real3 &f)=default
 Copy assignment operator.
constexpr __host__ __device__ Real3operator= (Real v)
 Assigns the triplet (v,v,v) to the instance.
constexpr __host__ __device__ Real3 copy () const
 Returns a copy of the triplet.
constexpr __host__ __device__ Real3reset ()
 Resets the triplet using default constructors.
constexpr __host__ __device__ Real3assign (Real ax, Real ay, Real az)
 Assigns the triplet (ax,ay,az) to the instance.
constexpr __host__ __device__ Real3assign (Real3 f)
 Copies the triplet f.
constexpr __host__ __device__ ArrayView< Realview ()
 Returns a view of the three elements of the vector.
constexpr __host__ __device__ ConstArrayView< RealconstView () const
 Returns a constant view of the three elements of the vector.
__host__ __device__ Real3 absolute () const
 Absolute value component by component.
std::istream & assign (std::istream &i)
 Reads a triplet from the stream i The triplet is read in the form of three values of type #value_type.
std::ostream & print (std::ostream &o) const
 Writes the triplet to the stream o readable by an assign().
std::ostream & printXyz (std::ostream &o) const
 Writes the triplet to the stream o in the form (x,y,z).
constexpr __host__ __device__ Real3add (Real3 b)
 Adds b to the triplet.
constexpr __host__ __device__ Real3sub (Real3 b)
 Subtracts b from the triplet.
constexpr __host__ __device__ Real3mul (Real3 b)
 Multiplies each component of the triplet by the corresponding component of b.
constexpr __host__ __device__ Real3div (Real3 b)
 Divides each component of the triplet by the corresponding component of b.
constexpr __host__ __device__ Real3addSame (Real b)
 Adds b to each component of the triplet.
constexpr __host__ __device__ Real3subSame (Real b)
 Subtracts b from each component of the triplet.
constexpr __host__ __device__ Real3mulSame (Real b)
 Multiplies each component of the triplet by b.
constexpr __host__ __device__ Real3divSame (Real b)
 Divides each component of the triplet by b.
constexpr __host__ __device__ Real3operator+= (Real3 b)
 Adds b to the triplet.
constexpr __host__ __device__ Real3operator-= (Real3 b)
 Subtracts b from the triplet.
constexpr __host__ __device__ Real3operator*= (Real3 b)
 Multiplies each component of the triplet by the corresponding component of b.
constexpr __host__ __device__ void operator*= (Real b)
 Multiplies each component of the triplet by the real number b.
constexpr __host__ __device__ Real3operator/= (Real3 b)
 Divides each component of the triplet by the corresponding component of b.
constexpr __host__ __device__ void operator/= (Real b)
 Divides each component of the triplet by the real number b.
constexpr __host__ __device__ Real3 operator+ (Real3 b) const
 Creates a triplet that equals this triplet added to b.
constexpr __host__ __device__ Real3 operator- (Real3 b) const
 Creates a triplet that equals b subtracted from this triplet.
constexpr __host__ __device__ Real3 operator- () const
 Creates a triplet opposite to the current triplet.
constexpr __host__ __device__ Real3 operator* (Real3 b) const
 Creates a triplet that equals this triplet whose each component has been multiplied by the corresponding component of b.
constexpr __host__ __device__ Real3 operator/ (Real3 b) const
 Creates a triplet that equals this triplet whose each component has been divided by the corresponding component of b.
constexpr __host__ __device__ bool operator== (Real3 b) const
 Compares the current instance component by component to b.
constexpr __host__ __device__ bool operator!= (Real3 b) const
 Compares two triplets. For the notion of equality, see operator==().
constexpr __host__ __device__ Real squareNormL2 () const
 Returns the square of the L2 norm of the triplet $ \(x^2+y^2+z^2$\).
__host__ __device__ Real normL2 () const
 Returns the L2 norm of the triplet $ \(\sqrt{x^2+y^2+z^2}\).
constexpr __host__ __device__ Real abs2 () const
 Returns the square of the norm of the triplet $ \(x^2+y^2+z^2\).
__host__ __device__ Real abs () const
 Returns the norm of the triplet $ \(\sqrt{x^2+y^2+z^2}\).
constexpr __host__ __device__ bool isNearlyZero () const
Real3normalize ()
Public Member Functions inherited from Arcane::Real3POD
__host__ __device__ Real operator[] (Integer i) const
__host__ __device__ Real operator() (Integer i) const
__host__ __device__ Realoperator[] (Integer i)
__host__ __device__ Realoperator() (Integer i)
__host__ __device__ void setComponent (Integer i, Real value)
 Sets the i-th component to value.

Static Public Member Functions

constexpr __host__ static __device__ Real3 null ()
constexpr __host__ static __device__ Real3 zero ()

Static Private Member Functions

constexpr __host__ static __device__ bool _eq (Real a, Real b)
 Compares the values of a and b using the TypeEqualT comparator.

Friends

constexpr __host__ __device__ Real3 operator* (Real sca, Real3 vec)
 Multiplication by a scalar.
constexpr __host__ __device__ Real3 operator* (Real3 vec, Real sca)
 Multiplication by a scalar.
constexpr __host__ __device__ Real3 operator/ (Real3 vec, Real sca)
 Division by a scalar.
constexpr __host__ __device__ bool operator< (Real3 v1, Real3 v2)
 Comparison operator.
std::ostream & operator<< (std::ostream &o, Real3 t)
 Writes the triplet t to the stream o.
std::istream & operator>> (std::istream &i, Real3 &t)
 Reads the triplet t from the stream o.

(Note that these are not member symbols.)

template<typename Type>
std::istream & operator>> (std::istream &i, BuiltInProxy< Type > &t)
 Reads the triplet t from the stream o.
std::ostream & operator<< (std::ostream &o, Real3Proxy t)
 Writes the triplet t to the stream o.
std::istream & operator>> (std::istream &i, Real3Proxy &t)
 Reads the triplet t from the stream o.
std::ostream & operator<< (std::ostream &o, Real3x3Proxy t)
 Writes the triplet t to the stream o.
std::istream & operator>> (std::istream &i, Real3x3Proxy &t)
 Reads the triplet t from the stream o.

Additional Inherited Members

Public Attributes inherited from Arcane::Real3POD
Real x
 first component of the triplet
Real y
 second component of the triplet
Real z
 third component of the triplet

Detailed Description

Class managing a 3-dimensional real vector.

Le vector includes three components x, y, and z, which are of type Real.

Real3 value (1.0,2.3,4.5); // Created a triplet (x=1.0, y=2.3, z=4.5)
cout << value.x; // Prints component x
value.y += 3.2; // Adds 3.2 to component \b y
constexpr __host__ __device__ Real3()
Constructs the zero vector.

or equivalently

Real3 value (1.0,2.3,4.5); // Created a triplet (x=1.0, y=2.3, z=4.5)
cout << value[0]; // Prints component x
value[1] += 3.2; // Adds 3.2 to component \b y

Definition at line 126 of file arccore/src/base/arccore/base/Real3.h.

Constructor & Destructor Documentation

◆ Real3() [1/6]

__host__ __device__ Arcane::Real3::Real3 ( )
inlineconstexpr

Constructs the zero vector.

Definition at line 132 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by absolute(), add(), addSame(), assign(), assign(), copy(), div(), divSame(), mul(), mulSame(), operator!=(), operator*, operator*(), operator*, operator*=(), operator+(), operator+=(), operator-(), operator-(), operator-=(), operator/(), operator/, operator/=(), operator<, operator<<, operator=(), operator=(), operator==(), operator>>, Real3(), reset(), sub(), and subSame().

Here is the caller graph for this function:

◆ Real3() [2/6]

__host__ __device__ Arcane::Real3::Real3 ( Real ax,
Real ay,
Real az )
inlineconstexpr

Constructs the triplet (ax,ay,az).

Definition at line 141 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ Real3() [3/6]

__host__ __device__ Arcane::Real3::Real3 ( const Real3POD & f)
inlineexplicitconstexpr

Constructs a triplet identical to f.

Definition at line 153 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ Real3() [4/6]

__host__ __device__ Arcane::Real3::Real3 ( Real v)
inlineexplicitconstexpr

Constructs the instance with the triplet (v,v,v).

Definition at line 162 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ Real3() [5/6]

__host__ __device__ Arcane::Real3::Real3 ( const Real2 & f)
inlineexplicitconstexpr

Constructs a triplet identical to f.

Definition at line 169 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real2POD::x, Arcane::Real3POD::x, Arcane::Real2POD::y, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ Real3() [6/6]

__host__ __device__ Arcane::Real3::Real3 ( ConstArrayView< Real > av)
inlineconstexpr

Constructs the triplet (av[0], av[1], av[2]).

Definition at line 178 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Member Function Documentation

◆ _eq()

__host__ static __device__ bool Arcane::Real3::_eq ( Real a,
Real b )
inlinestaticconstexprprivate

Compares the values of a and b using the TypeEqualT comparator.

Return values
trueif a and b are equal,
falseotherwise.

Definition at line 478 of file arccore/src/base/arccore/base/Real3.h.

References _eq().

Referenced by _eq(), and operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ abs()

__host__ __device__ Real Arcane::Real3::abs ( ) const
inline

Returns the norm of the triplet $ \(\sqrt{x^2+y^2+z^2}\).

Definition at line 105 of file MathReal3.h.

◆ abs2()

__host__ __device__ Real Arcane::Real3::abs2 ( ) const
inlineconstexpr

Returns the square of the norm of the triplet $ \(x^2+y^2+z^2\).

Definition at line 459 of file arccore/src/base/arccore/base/Real3.h.

References abs2(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by abs2().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ absolute()

__host__ __device__ Real3 Arcane::Real3::absolute ( ) const
inline

Absolute value component by component.

Definition at line 244 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ add()

__host__ __device__ Real3 & Arcane::Real3::add ( Real3 b)
inlineconstexpr

Adds b to the triplet.

Definition at line 259 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by operator+=(), and Arcane::Numerics::ParallelCorefinementService::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ addSame()

__host__ __device__ Real3 & Arcane::Real3::addSame ( Real b)
inlineconstexpr

Adds b to each component of the triplet.

Definition at line 295 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by Arcane::Numerics::ParallelCorefinementService::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ assign() [1/3]

__host__ __device__ Real3 & Arcane::Real3::assign ( Real ax,
Real ay,
Real az )
inlineconstexpr

Assigns the triplet (ax,ay,az) to the instance.

Definition at line 214 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by operator>>.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ assign() [2/3]

__host__ __device__ Real3 & Arcane::Real3::assign ( Real3 f)
inlineconstexpr

Copies the triplet f.

Definition at line 223 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ assign() [3/3]

std::istream & Arcane::Real3::assign ( std::istream & i)

Reads a triplet from the stream i The triplet is read in the form of three values of type #value_type.

Definition at line 27 of file arccore/src/base/arccore/base/Real3.cc.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ constView()

__host__ __device__ ConstArrayView< Real > Arcane::Real3::constView ( ) const
inlineconstexpr

Returns a constant view of the three elements of the vector.

Definition at line 238 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x.

◆ copy()

__host__ __device__ Real3 Arcane::Real3::copy ( ) const
inlineconstexpr

Returns a copy of the triplet.

Definition at line 204 of file arccore/src/base/arccore/base/Real3.h.

References Real3().

Here is the call graph for this function:

◆ div()

__host__ __device__ Real3 & Arcane::Real3::div ( Real3 b)
inlineconstexpr

Divides each component of the triplet by the corresponding component of b.

Definition at line 286 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by operator/=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ divSame()

__host__ __device__ Real3 & Arcane::Real3::divSame ( Real b)
inlineconstexpr

Divides each component of the triplet by b.

Definition at line 322 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by Arcane::math::mutableNormalize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isNearlyZero()

__host__ __device__ bool Arcane::Real3::isNearlyZero ( ) const
inlineconstexpr

Definition at line 93 of file MathReal3.h.

◆ mul()

__host__ __device__ Real3 & Arcane::Real3::mul ( Real3 b)
inlineconstexpr

Multiplies each component of the triplet by the corresponding component of b.

Definition at line 277 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by operator*=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mulSame()

__host__ __device__ Real3 & Arcane::Real3::mulSame ( Real b)
inlineconstexpr

Multiplies each component of the triplet by b.

Definition at line 313 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ normalize()

Real3 & Arcane::Real3::normalize ( )
inline

Definition at line 87 of file MathReal3.h.

◆ normL2()

__host__ __device__ Real Arcane::Real3::normL2 ( ) const
inline

Returns the L2 norm of the triplet $ \(\sqrt{x^2+y^2+z^2}\).

Definition at line 99 of file MathReal3.h.

Referenced by Arcane::math::axisSymmetric(), Arcane::UnstructuredMeshUtilities::computeDirection(), Arcane::UnstructuredMeshUtilities::computeNormal(), and Arcane::math::planarSymmetric().

Here is the caller graph for this function:

◆ null()

__host__ static __device__ Real3 Arcane::Real3::null ( )
inlinestaticconstexpr

Definition at line 198 of file arccore/src/base/arccore/base/Real3.h.

◆ operator!=()

__host__ __device__ bool Arcane::Real3::operator!= ( Real3 b) const
inlineconstexpr

Compares two triplets. For the notion of equality, see operator==().

Return values
trueif the two triplets are different,
falseotherwise.

Definition at line 445 of file arccore/src/base/arccore/base/Real3.h.

References operator==(), and Real3().

Here is the call graph for this function:

◆ operator*()

__host__ __device__ Real3 Arcane::Real3::operator* ( Real3 b) const
inlineconstexpr

Creates a triplet that equals this triplet whose each component has been multiplied by the corresponding component of b.

Definition at line 371 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ operator*=() [1/2]

__host__ __device__ void Arcane::Real3::operator*= ( Real b)
inlineconstexpr

Multiplies each component of the triplet by the real number b.

Definition at line 340 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ operator*=() [2/2]

__host__ __device__ Real3 & Arcane::Real3::operator*= ( Real3 b)
inlineconstexpr

Multiplies each component of the triplet by the corresponding component of b.

Definition at line 337 of file arccore/src/base/arccore/base/Real3.h.

References mul(), and Real3().

Here is the call graph for this function:

◆ operator+()

__host__ __device__ Real3 Arcane::Real3::operator+ ( Real3 b) const
inlineconstexpr

Creates a triplet that equals this triplet added to b.

Definition at line 359 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ operator+=()

__host__ __device__ Real3 & Arcane::Real3::operator+= ( Real3 b)
inlineconstexpr

Adds b to the triplet.

Definition at line 331 of file arccore/src/base/arccore/base/Real3.h.

References add(), and Real3().

Here is the call graph for this function:

◆ operator-() [1/2]

__host__ __device__ Real3 Arcane::Real3::operator- ( ) const
inlineconstexpr

Creates a triplet opposite to the current triplet.

Definition at line 365 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ operator-() [2/2]

__host__ __device__ Real3 Arcane::Real3::operator- ( Real3 b) const
inlineconstexpr

Creates a triplet that equals b subtracted from this triplet.

Definition at line 362 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ operator-=()

__host__ __device__ Real3 & Arcane::Real3::operator-= ( Real3 b)
inlineconstexpr

Subtracts b from the triplet.

Definition at line 334 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), and sub().

Here is the call graph for this function:

◆ operator/()

__host__ __device__ Real3 Arcane::Real3::operator/ ( Real3 b) const
inlineconstexpr

Creates a triplet that equals this triplet whose each component has been divided by the corresponding component of b.

Definition at line 377 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ operator/=() [1/2]

__host__ __device__ void Arcane::Real3::operator/= ( Real b)
inlineconstexpr

Divides each component of the triplet by the real number b.

Definition at line 351 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ operator/=() [2/2]

__host__ __device__ Real3 & Arcane::Real3::operator/= ( Real3 b)
inlineconstexpr

Divides each component of the triplet by the corresponding component of b.

Definition at line 348 of file arccore/src/base/arccore/base/Real3.h.

References div(), and Real3().

Here is the call graph for this function:

◆ operator=()

__host__ __device__ Real3 & Arcane::Real3::operator= ( Real v)
inlineconstexpr

Assigns the triplet (v,v,v) to the instance.

Definition at line 190 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ operator==()

__host__ __device__ bool Arcane::Real3::operator== ( Real3 b) const
inlineconstexpr

Compares the current instance component by component to b.

Return values
trueif this.x==b.x and this.y==b.y and this.z==b.z.
falseotherwise.

Definition at line 434 of file arccore/src/base/arccore/base/Real3.h.

References _eq(), Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by operator!=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ print()

std::ostream & Arcane::Real3::print ( std::ostream & o) const

Writes the triplet to the stream o readable by an assign().

Definition at line 37 of file arccore/src/base/arccore/base/Real3.cc.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ printXyz()

std::ostream & Arcane::Real3::printXyz ( std::ostream & o) const

Writes the triplet to the stream o in the form (x,y,z).

Definition at line 47 of file arccore/src/base/arccore/base/Real3.cc.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by operator<<.

Here is the caller graph for this function:

◆ reset()

__host__ __device__ Real3 & Arcane::Real3::reset ( )
inlineconstexpr

Resets the triplet using default constructors.

Definition at line 207 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ squareNormL2()

__host__ __device__ Real Arcane::Real3::squareNormL2 ( ) const
inlineconstexpr

Returns the square of the L2 norm of the triplet $ \(x^2+y^2+z^2$\).

Definition at line 451 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by Arcane::UnstructuredMeshUtilities::computeNormal(), Arcane::GeometricUtilities::ProjectionInfo::isInside(), Arcane::GeometricUtilities::ProjectionInfo::isInside(), Arcane::mesh::ParallelAMRConsistency::makeNewItemsConsistent(), Arcane::GeometricUtilities::ProjectionInfo::projection(), and Arcane::GeometricUtilities::ProjectionInfo::projection().

Here is the caller graph for this function:

◆ sub()

__host__ __device__ Real3 & Arcane::Real3::sub ( Real3 b)
inlineconstexpr

Subtracts b from the triplet.

Definition at line 268 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Referenced by operator-=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ subSame()

__host__ __device__ Real3 & Arcane::Real3::subSame ( Real b)
inlineconstexpr

Subtracts b from each component of the triplet.

Definition at line 304 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

Here is the call graph for this function:

◆ view()

__host__ __device__ ArrayView< Real > Arcane::Real3::view ( )
inlineconstexpr

Returns a view of the three elements of the vector.

Definition at line 232 of file arccore/src/base/arccore/base/Real3.h.

References Arcane::Real3POD::x.

◆ zero()

__host__ static __device__ Real3 Arcane::Real3::zero ( )
inlinestaticconstexpr

Definition at line 199 of file arccore/src/base/arccore/base/Real3.h.

◆ operator* [1/2]

__host__ __device__ Real3 operator* ( Real sca,
Real3 vec )
friend

Multiplication by a scalar.

Definition at line 380 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ operator* [2/2]

__host__ __device__ Real3 operator* ( Real3 vec,
Real sca )
friend

Multiplication by a scalar.

Definition at line 386 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ operator/

__host__ __device__ Real3 operator/ ( Real3 vec,
Real sca )
friend

Division by a scalar.

Definition at line 392 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ operator<

__host__ __device__ bool operator< ( Real3 v1,
Real3 v2 )
friend

Comparison operator.

This operator allows sorting Real3 for example in std::set

Definition at line 405 of file arccore/src/base/arccore/base/Real3.h.

References Real3(), Arcane::Real3POD::x, Arcane::Real3POD::y, and Arcane::Real3POD::z.

◆ operator<< [1/3]

std::ostream & operator<< ( std::ostream & o,
Real3 t )
friend

Writes the triplet t to the stream o.

Definition at line 417 of file arccore/src/base/arccore/base/Real3.h.

References printXyz(), and Real3().

Referenced by operator<<(), and operator<<().

◆ operator<<() [2/3]

std::ostream & operator<< ( std::ostream & o,
Real3Proxy t )
related

Writes the triplet t to the stream o.

Definition at line 432 of file Real3Proxy.h.

References operator<<, and Arcane::Real3Proxy::printXyz().

Here is the call graph for this function:

◆ operator<<() [3/3]

std::ostream & operator<< ( std::ostream & o,
Real3x3Proxy t )
related

Writes the triplet t to the stream o.

Definition at line 272 of file Real3x3Proxy.h.

References operator<<, and Arcane::Real3x3Proxy::printXyz().

Here is the call graph for this function:

◆ operator>>() [1/4]

template<typename Type>
std::istream & operator>> ( std::istream & i,
BuiltInProxy< Type > & t )
related

Reads the triplet t from the stream o.

Definition at line 166 of file BuiltInProxy.h.

◆ operator>> [2/4]

std::istream & operator>> ( std::istream & i,
Real3 & t )
friend

Reads the triplet t from the stream o.

Definition at line 423 of file arccore/src/base/arccore/base/Real3.h.

References assign(), and Real3().

◆ operator>>() [3/4]

std::istream & operator>> ( std::istream & i,
Real3Proxy & t )
related

Reads the triplet t from the stream o.

Definition at line 443 of file Real3Proxy.h.

References Arcane::Real3Proxy::assign().

Here is the call graph for this function:

◆ operator>>() [4/4]

std::istream & operator>> ( std::istream & i,
Real3x3Proxy & t )
related

Reads the triplet t from the stream o.

Definition at line 283 of file Real3x3Proxy.h.

References Arcane::Real3x3Proxy::assign().

Here is the call graph for this function:

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