A Real vector in SpaceDim-dimensional space. More...
#include <AMReX_RealVect.H>
Static Public Member Functions | |
Static public members functions | |
AMREX_GPU_HOST_DEVICE static constexpr AMREX_FORCE_INLINE RealVect | TheZeroVector () noexcept |
AMREX_GPU_HOST_DEVICE static constexpr AMREX_FORCE_INLINE RealVect | TheUnitVector () noexcept |
Constants | |
static AMREX_EXPORT const RealVect | Zero = RealVect::TheZeroVector() |
static AMREX_EXPORT const RealVect | Unit = RealVect::TheUnitVector() |
AMREX_GPU_HOST_DEVICE RealVect | BASISREALV (int dir) noexcept |
Arithmetic friend functions | |
Real | vect [SpaceDim] = {AMREX_D_DECL(Real(0.),Real(0.),Real(0.))} |
AMREX_GPU_HOST_DEVICE RealVect | operator+ (Real s, const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | operator- (Real s, const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | operator* (Real s, const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | operator/ (Real s, const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | operator+ (const RealVect &s, const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | operator- (const RealVect &s, const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | operator* (const RealVect &s, const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | operator/ (const RealVect &s, const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | scale (const RealVect &p, Real s) noexcept |
std::ostream & | operator<< (std::ostream &ostr, const RealVect &p) |
std::istream & | operator>> (std::istream &is, RealVect &iv) |
Other arithmetic operators | |
AMREX_GPU_HOST_DEVICE RealVect & | min (const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect & | max (const RealVect &p) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | min (const RealVect &p1, const RealVect &p2) noexcept |
AMREX_GPU_HOST_DEVICE RealVect | max (const RealVect &p1, const RealVect &p2) noexcept |
A Real vector in SpaceDim-dimensional space.
The class RealVect is an implementation of a Real vector in a SpaceDim-dimensional space. RealVect values are accessed using the operator[] function, as for a normal C++ array. In addition, the basic arithmetic operators have been overloaded to implement scaling and translation operations.
|
inlineconstexprnoexcept |
Construct a RealVect whose components are zero.
|
inlineexplicitnoexcept |
|
inlineexplicitconstexprnoexcept |
Construct a RealVect given the specific values for its coordinates. AMREX_D_DECL is a macro that sets the constructor to take AMREX_SPACEDIM arguments.
|
inlineexplicitnoexcept |
Construct a RealVect setting the coordinates to the corresponding values in the Real array a.
|
inlinenoexcept |
Construct a RealVect from an IntVect by coercing each component from int
to Real.
|
inlinenoexcept |
Return pointer to the first component.
|
inlinenoexcept |
Return pointer to the first component.
|
inlinenoexcept |
Returns an IntVect whose components are the std::floor of the RealVect components.
|
inlinenoexcept |
Only for sending stuff to Fortran
|
inlinenoexcept |
Only for sending stuff to Fortran
|
inlinenoexcept |
Returns the result of the scalar product with another RealVect
|
inlinenoexcept |
Return pointer to the one past last component
|
inlinenoexcept |
Return pointer to the one past last component
|
inlinenoexcept |
Returns an IntVect whose components are the std::floor of the RealVect components.
|
inlinenoexcept |
|
inlinenoexcept |
Component with the maximum value of this RealVect (returns 0 if they are all the same). a_doAbs : if true then take the absolute value before comparing
|
inlinenoexcept |
|
inlinenoexcept |
Component with the minimum value of this RealVect (returns 0 if they are all the same). a_doAbs : if true then take the absolute value before comparing
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Modifies this RealVect by component-wise multiplication by argument.
|
inlinenoexcept |
Modifies this RealVect by multiplying each component by a scalar.
|
inlinenoexcept |
Unary plus – for completeness.
|
inlinenoexcept |
|
inlinenoexcept |
Modifies this RealVect by component-wise addition by argument.
|
inlinenoexcept |
Modifies this RealVect by addition of a scalar to each component.
|
inlinenoexcept |
Unary minus – negates all components of this RealVect.
|
inlinenoexcept |
|
inlinenoexcept |
Modifies this RealVect by component-wise subtraction by argument.
|
inlinenoexcept |
Modifies this RealVect by subtraction of a scalar from each component.
|
inlinenoexcept |
|
inlinenoexcept |
Modifies this RealVect by component-wise division by argument.
|
inlinenoexcept |
Modifies this RealVect by dividing each component by a scalar.
|
inlinenoexcept |
|
inlinenoexcept |
Returns true if this RealVect is less than or equal to argument RealVect. All comparisons between analogous components must be satisfied. Note that, since the comparison is component-wise, it is possible for an RealVect to be neither greater than or equal to, less than or equal to, nor equal to another.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Returns true if this RealVect is greater than or equal to argument RealVect. All comparisons between analogous components must be satisfied. Note that, since the comparison is component-wise, it is possible for an RealVect to be neither greater than or equal to, less than or equal to, nor equal to another.
|
delete |
Prevent rvalue assignment to the i'th coordinate of the RealVect.
|
inlinenoexcept |
Returns a modifiable lvalue reference to the i'th coordinate of the RealVect.
|
inlinenoexcept |
Returns the i'th coordinate of the RealVect.
|
inlinenoexcept |
Product of all components of this RealVect.
|
inlinenoexcept |
sum squares–no square root
|
inlinenoexcept |
Returns an IntVect whose components are the std::floor of the RealVect components.
|
inlinenoexcept |
Modifies this RealVect by multiplying each component by a scalar.
|
inlinenoexcept |
Sum of all components of this RealVect.
|
inlinestaticconstexprnoexcept |
The unit vector in AMREX_SPACEDIM-dimensional space.
|
inlinestaticconstexprnoexcept |
The zero vector in AMREX_SPACEDIM-dimensional space.
|
inlinenoexcept |
sqrt(sum squares)
|
friend |
Returns a basis vector in the given coordinate direction.
In 2-D:
BASISREALV(0) == (1.,0.); BASISREALV(1) == (0.,1.).
In 3-D:
BASISREALV(0) == (1.,0.,0.); BASISREALV(1) == (0.,1.,0.); BASISREALV(2) == (0.,0.,1.).
Note that the coordinate directions are based at zero.
|
friend |
Returns the RealVect that is the component-wise maximum of two argument RealVects.
|
friend |
Returns the RealVect that is the component-wise minimum of two argument RealVects.
|
friend |
Returns component-wise product of s and p.
|
friend |
|
friend |
Returns component-wise sum of RealVects s and p.
|
friend |
|
friend |
Returns s - p.
|
friend |
Returns s - p.
|
friend |
Returns component-wise quotient p / s.
|
friend |
|
friend |
Print to the given output stream in ASCII.
|
friend |
|
friend |
|
static |
This is a RealVect all of whose components are equal to one.
|
protected |
The individual components of this RealVect.
|
static |
This is a RealVect all of whose components are equal to zero.