Skip to content

Double2

#include <ncarray/custom_types.hh>
struct Double2

Defined in src/lib/ncarray/custom_types.hh:634

A 2-double (double precision) vector data type.

Name Kind Owner
x variable Declared here
y variable Declared here
Double2 function Declared here
Double2 function Declared here
Double2 function Declared here
Double2 function Declared here
Double2 function Declared here
Double2 function Declared here
operator bool function Declared here
Return Name Description
double x
double y

double x { 0.0 }

Defined in src/lib/ncarray/custom_types.hh:635


double y { 0.0 }

Defined in src/lib/ncarray/custom_types.hh:636

Return Name Description
constexpr Double2 constexpr Defaulted member function.
constexpr Double2 constexpr Defaulted member function.
constexpr Double2 constexpr Defaulted member function.
NCA_HD constexpr Double2 inline constexpr
NCA_HD constexpr Double2 inline constexpr
NCA_HD constexpr Double2 inline constexpr requires (!hd_std::is_same_v<hd_std::decay_t<U>, Double2>)
NCA_HD operator bool const inline explicit

constexpr

constexpr constexpr Double2() = default

Defined in src/lib/ncarray/custom_types.hh:638

Defaulted member function.


constexpr

constexpr constexpr Double2(const Double2 &) = default

Defined in src/lib/ncarray/custom_types.hh:639

Defaulted member function.


constexpr

constexpr constexpr Double2(Double2 &&) = default

Defined in src/lib/ncarray/custom_types.hh:640

Defaulted member function.


inline constexpr

constexpr inline NCA_HD constexpr Double2(double x_, double y_)

Defined in src/lib/ncarray/custom_types.hh:644


inline constexpr

template<Numeric U> constexpr inline NCA_HD constexpr Double2(U s)

Defined in src/lib/ncarray/custom_types.hh:651


inline constexpr requires (!hd_std::is_same_v<hd_std::decay_t<U>, Double2>)

template<Vector2DType U> constexpr inline NCA_HD constexpr Double2(const U & other) requires (!hd_std::is_same_v<hd_std::decay_t<U>, Double2>)

Defined in src/lib/ncarray/custom_types.hh:659


const inline explicit

inline explicit NCA_HD operator bool() const

Defined in src/lib/ncarray/custom_types.hh:664