Double2
Double2
Section titled “Double2”#include <ncarray/custom_types.hh>struct Double2Defined in src/lib/ncarray/custom_types.hh:634
A 2-double (double precision) vector data type.
Public Attributes
Section titled “Public Attributes”| 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
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
constexpr |
Double2 constexpr |
Defaulted member function. |
constexpr |
Double2 constexpr |
Defaulted member function. |
constexpr |
Double2 constexpr |
Defaulted member function. |
constexpr Double2 & |
operator= constexpr |
Defaulted assignment operator. |
constexpr Double2 & |
operator= constexpr |
Defaulted assignment operator. |
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 |
Double2
Section titled “Double2”constexpr
constexpr constexpr Double2() = defaultDefined in src/lib/ncarray/custom_types.hh:638
Defaulted member function.
Double2
Section titled “Double2”constexpr
constexpr constexpr Double2(const Double2 &) = defaultDefined in src/lib/ncarray/custom_types.hh:639
Defaulted member function.
Double2
Section titled “Double2”constexpr
constexpr constexpr Double2(Double2 &&) = defaultDefined in src/lib/ncarray/custom_types.hh:640
Defaulted member function.
operator=
Section titled “operator=”constexpr
constexpr constexpr Double2 & operator=(const Double2 &) = defaultDefined in src/lib/ncarray/custom_types.hh:641
Defaulted assignment operator.
operator=
Section titled “operator=”constexpr
constexpr constexpr Double2 & operator=(Double2 &&) = defaultDefined in src/lib/ncarray/custom_types.hh:642
Defaulted assignment operator.
Double2
Section titled “Double2”inline constexpr
constexpr inline NCA_HD constexpr Double2(double x_, double y_)Defined in src/lib/ncarray/custom_types.hh:644
Double2
Section titled “Double2”inline constexpr
template<Numeric U> constexpr inline NCA_HD constexpr Double2(U s)Defined in src/lib/ncarray/custom_types.hh:651
Double2
Section titled “Double2”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
operator bool
Section titled “operator bool”const inline explicit
inline explicit NCA_HD operator bool() constDefined in src/lib/ncarray/custom_types.hh:664