Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
AMReX_Dim3.H File Reference

Simple structs for 3-component integer and real-valued tuples. More...

#include <AMReX_Config.H>
#include <AMReX_REAL.H>
#include <AMReX_GpuQualifiers.H>
#include <concepts>
#include <iostream>

Go to the source code of this file.

Classes

struct  amrex::Dim3
 A simple struct holding 3 int values for a 3D index. More...
 
struct  amrex::XDim3
 A simple struct holding 3 Real values for a 3D coordinate. More...
 

Namespaces

namespace  amrex
 

Functions

__host__ __device__ Real amrex::dot_product (XDim3 const &a, XDim3 const &b)
 Return the dot product of two XDim3 structs.
 
__host__ __device__ XDim3 amrex::cross_product (XDim3 const &a, XDim3 const &b)
 Return the cross product of two XDim3 structs.
 
__host__ __device__ XDim3 amrex::operator+ (XDim3 const &a, XDim3 const &b)
 Component-wise addition of two XDim3 structs.
 
__host__ __device__ XDim3 amrex::operator- (XDim3 const &a, XDim3 const &b)
 Component-wise subtraction of two XDim3 structs.
 
template<typename T >
requires (std::same_as<T, Dim3> || std::same_as<T, XDim3>)
std::ostream & amrex::operator<< (std::ostream &os, const T &d)
 Write a Dim3 or XDim3 to an output stream in (x,y,z) format.
 

Detailed Description

Simple structs for 3-component integer and real-valued tuples.