Skip to content

Double2

#include <custom_types.hh>
struct Double2

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

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:636


double y { 0.0 }

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

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 (!is_same_v<decay_t<U>, Double2>)
NCA_HD operator bool const inline explicit

constexpr

constexpr constexpr Double2() = default

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

Defaulted member function.


constexpr

constexpr constexpr Double2(const Double2 &) = default

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

Defaulted member function.


constexpr

constexpr constexpr Double2(Double2 &&) = default

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

Defaulted member function.


inline constexpr

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

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


inline constexpr

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

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


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

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

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


const inline explicit

inline explicit NCA_HD operator bool() const

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