Double2
Double2
Section titled “Double2”#include <custom_types.hh>struct Double2Defined in src/lib/ncarray/custom_types.hh:635
A 2-double (double precision) vector data type.
List of all members
Section titled “List of all members”| 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 |
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:636
double y { 0.0 }Defined in src/lib/ncarray/custom_types.hh:637
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. |
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 |
Double2
Section titled “Double2”constexpr
constexpr constexpr Double2() = defaultDefined in src/lib/ncarray/custom_types.hh:639
Defaulted member function.
Double2
Section titled “Double2”constexpr
constexpr constexpr Double2(const Double2 &) = defaultDefined in src/lib/ncarray/custom_types.hh:640
Defaulted member function.
Double2
Section titled “Double2”constexpr
constexpr constexpr Double2(Double2 &&) = defaultDefined in src/lib/ncarray/custom_types.hh:641
Defaulted member function.
Double2
Section titled “Double2”inline constexpr
constexpr inline NCA_HD constexpr Double2(double x_, double y_)Defined in src/lib/ncarray/custom_types.hh:645
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:652
Double2
Section titled “Double2”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
operator bool
Section titled “operator bool”const inline explicit
inline explicit NCA_HD operator bool() constDefined in src/lib/ncarray/custom_types.hh:665