/home/runner/work/kynema/kynema/kynema/src/math/vector_operations.hpp File Reference

Kynema API: /home/runner/work/kynema/kynema/kynema/src/math/vector_operations.hpp File Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
Loading...
Searching...
No Matches
vector_operations.hpp File Reference
#include <array>
#include <Kokkos_Core.hpp>

Go to the source code of this file.

Namespaces

namespace  kynema
 
namespace  kynema::math
 

Functions

template<typename VectorType , typename MatrixType >
KOKKOS_INLINE_FUNCTION void kynema::math::VecTilde (const VectorType &vector, const MatrixType &matrix)
 Converts a 3x1 vector to a 3x3 skew-symmetric matrix and returns the result.
 
template<typename AVectorType , typename BVectorType >
KOKKOS_INLINE_FUNCTION double kynema::math::DotProduct (const AVectorType &a, const BVectorType &b)
 Calculate the dot product between two vector views.
 
constexpr double kynema::math::DotProduct (const std::array< double, 3 > &a, const std::array< double, 3 > &b)
 Calculate the dot product between two vector views.
 
template<typename VectorType >
KOKKOS_INLINE_FUNCTION void kynema::math::CrossProduct (const VectorType &a, const VectorType &b, const VectorType &c)
 Calculate the cross product between two vector views.
 
constexpr std::array< double, 3 > kynema::math::CrossProduct (std::span< const double, 3 > a, std::span< const double, 3 > b)
 Calculate the cross product between two vectors.
 
constexpr double kynema::math::Norm (const std::array< double, 3 > &v)
 Calculate the norm of a given vector.
 
constexpr std::array< double, 3 > kynema::math::UnitVector (const std::array< double, 3 > &v)
 UnitVector returns the unit vector of the given vector.