48 template<
typename dtype>
54 returnArray(0, 0) = 0.;
55 returnArray(0, 1) = -inZ;
56 returnArray(0, 2) = inY;
57 returnArray(1, 0) = inZ;
58 returnArray(1, 1) = 0.;
59 returnArray(1, 2) = -inX;
60 returnArray(2, 0) = -inY;
61 returnArray(2, 1) = inX;
62 returnArray(2, 2) = 0.;
74 template<
typename dtype>
79 if (inVec.
size() != 3)
84 return hat(inVec[0], inVec[1], inVec[2]);
96 return hat(inVec.
x, inVec.
y, inVec.
z);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition: Error.hpp:37
#define STATIC_ASSERT_ARITHMETIC(dtype)
Definition: StaticAsserts.hpp:39
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition: NdArrayCore.hpp:139
size_type size() const noexcept
Definition: NdArrayCore.hpp:4524
Holds a 3D vector.
Definition: Vec3.hpp:51
double z
Definition: Vec3.hpp:56
double x
Definition: Vec3.hpp:54
double y
Definition: Vec3.hpp:55
Definition: cholesky.hpp:41
NdArray< dtype > hat(dtype inX, dtype inY, dtype inZ)
Definition: hat.hpp:49