3#include <AMReX_Config.H>
42 return a.
x*b.
x + a.
y*b.
y + a.
z*b.
z;
64 return XDim3{.
x = a.
x + b.
x, .y = a.
y + b.
y, .z = a.
z + b.
z};
75 return XDim3{.
x = a.
x - b.
x, .y = a.
y - b.
y, .z = a.
z - b.
z};
84requires (std::same_as<T, Dim3> || std::same_as<T, XDim3>)
85std::ostream&
operator<< (std::ostream& os,
const T& d)
87 os <<
'(' << d.x <<
',' << d.y <<
',' << d.z <<
')';
#define AMREX_FORCE_INLINE
Definition AMReX_Extension.H:124
#define AMREX_GPU_HOST_DEVICE
Definition AMReX_GpuQualifiers.H:20
amrex_real Real
Floating Point Type for Fields.
Definition AMReX_REAL.H:79
Definition AMReX_Amr.cpp:50
__host__ __device__ Real dot_product(XDim3 const &a, XDim3 const &b)
Return the dot product of two XDim3 structs.
Definition AMReX_Dim3.H:40
__host__ __device__ XDim3 cross_product(XDim3 const &a, XDim3 const &b)
Return the cross product of two XDim3 structs.
Definition AMReX_Dim3.H:51
__host__ __device__ XDim3 operator-(XDim3 const &a, XDim3 const &b)
Component-wise subtraction of two XDim3 structs.
Definition AMReX_Dim3.H:73
__host__ __device__ XDim3 operator+(XDim3 const &a, XDim3 const &b)
Component-wise addition of two XDim3 structs.
Definition AMReX_Dim3.H:62
A simple struct holding 3 int values for a 3D index.
Definition AMReX_Dim3.H:24
int x
Definition AMReX_Dim3.H:24
int z
Definition AMReX_Dim3.H:24
int y
Definition AMReX_Dim3.H:24
A simple struct holding 3 Real values for a 3D coordinate.
Definition AMReX_Dim3.H:32
Real x
Definition AMReX_Dim3.H:32
Real z
Definition AMReX_Dim3.H:32
Real y
Definition AMReX_Dim3.H:32