/home/runner/work/amr-wind/amr-wind/amr-wind/core/vs/vector.H Source File
AMR-Wind API v0.1.0
CFD solver for wind plant simulations
|
Loading...
Searching...
No Matches
vector.H
Go to the documentation of this file.
Definition tensor.H:8
Definition vstraits.H:11
Definition vector.H:13
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT(const T &x, const T &y, const T &z)
Definition vector.H:32
VectorT(const VectorT &)=default
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT()=default
Construct a default vector, all components set to zero.
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT< T > operator/=(const T val)
Definition vectorI.H:39
VectorT & operator=(const VectorT &) &=default
VectorT & operator=(const VectorT &) &&=delete
VectorT & operator=(VectorT &&) &&=delete
AMREX_GPU_HOST_DEVICE static AMREX_FORCE_INLINE constexpr VectorT< T > one()
Definition vector.H:50
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T & z() &noexcept
Definition vector.H:99
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T & x() &noexcept
Definition vector.H:97
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE const T & z() const &noexcept
Definition vector.H:108
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT< T > operator*=(const T val)
Definition vectorI.H:19
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT< T > unit() const
Return the unit vector parallel to this vector.
Definition vector.H:92
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE const T * data() const noexcept
Definition vector.H:136
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T & y() &noexcept
Definition vector.H:98
VectorT(VectorT &&)=default
AMREX_GPU_HOST_DEVICE static AMREX_FORCE_INLINE constexpr VectorT< T > jhat(const T &y=Traits::one())
Definition vector.H:70
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT< T > & normalize()
Normalize the vector to unit vector.
Definition vectorI.H:126
~VectorT()=default
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T * data() noexcept
Definition vector.H:132
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE const T & operator[](size_type pos) const &
Definition vector.H:127
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE const T & x() const &noexcept
Definition vector.H:100
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT< T > sqrt(const VectorT &)
Sqrt of each component.
AMREX_GPU_HOST_DEVICE static AMREX_FORCE_INLINE constexpr VectorT< T > zero()
Zero vector.
Definition vector.H:45
VectorT & operator=(VectorT &&) &=default
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE const T & y() const &noexcept
Definition vector.H:104
AMREX_GPU_HOST_DEVICE static AMREX_FORCE_INLINE constexpr VectorT< T > khat(const T &z=Traits::one())
Definition vector.H:80
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE VectorT< T > operator-() const
Definition vectorI.H:12
AMREX_GPU_HOST_DEVICE static AMREX_FORCE_INLINE constexpr VectorT< T > ihat(const T &x=Traits::one())
Definition vector.H:60
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE T & operator[](size_type pos) &
Definition vector.H:122
Generated by 1.12.0