tfel
Loading...
Searching...
No Matches
tvector.ixx File Reference

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.
namespace  tfel::math
 This namespace contains various classes and functions défining mathematical objects and numerical algorithms.

Functions

template<unsigned short N, typename T, typename OutputIterator>
requires (isScalar<T>())
TFEL_HOST_DEVICE constexpr void tfel::math::exportToBaseTypeArray (const tvector< N, T > &, OutputIterator) noexcept
template<unsigned short N, typename T>
requires (isScalar<T>())
TFEL_HOST_DEVICE constexpr auto tfel::math::norm (const tvector< N, T > &) noexcept
template<unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::abs (const tvector< N, T > &v) noexcept
template<unsigned short N, typename T, typename Operation>
TFEL_HOST_DEVICE constexpr auto tfel::math::abs (const Expr< tvector< N, T >, Operation > &) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 1u, T > tfel::math::makeTVector1D (const T) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 2u, T > tfel::math::makeTVector2D (const T, const T) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 3u, T > tfel::math::makeTVector3D (const T, const T, const T) noexcept
template<typename F, typename T, unsigned short N>
TFEL_HOST_DEVICE constexpr tvector< N, std::invoke_result_t< F, T > > tfel::math::map (F, const tvector< N, T > &)
 create a new tvector by applying a functor
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 3u, T > tfel::math::cross_product (const tvector< 2u, T > &, const tvector< 2u, T > &) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr tvector< 3u, T > tfel::math::cross_product (const tvector< 3u, T > &, const tvector< 3u, T > &) noexcept
template<typename T>
TFEL_HOST_DEVICE constexpr void tfel::math::find_perpendicular_vector (tvector< 3u, T > &, const tvector< 3u, T > &) noexcept
template<unsigned short I, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::slice (tvector< N, T > &) noexcept
 create a slice from a tiny vector
template<unsigned short I, unsigned short J, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::slice (tvector< N, T > &) noexcept
 create a slice from a tiny vector
template<unsigned short I, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::slice (const tvector< N, T > &) noexcept
 create a slice from a tiny vector
template<unsigned short I, unsigned short J, unsigned short N, typename T>
TFEL_HOST_DEVICE constexpr auto tfel::math::slice (const tvector< N, T > &) noexcept
 create a slice from a tiny vector (const version)
template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N>
requires ((!isScalar<MappedType>()) && (IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto tfel::math::map (tvector< N, base_type< numeric_type< MappedType > > > &) noexcept
 create a view of a math object from a tiny vector
template<typename MappedType, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N>
requires ((!isScalar<MappedType>()) && (IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto tfel::math::map (const tvector< N, base_type< numeric_type< MappedType > > > &) noexcept
 create a constant view of a math object from a tiny vector
template<typename MappedType, unsigned short offset, typename IndexingPolicyType = typename MappedType::indexing_policy, unsigned short N, typename real>
requires ( (!std::is_const_v<MappedType>)&&(IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename MappedType::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto tfel::math::map (tvector< N, real > &) noexcept
 create a view of a math object from a tiny vector
template<typename MappedType, unsigned short offset, typename IndexingPolicyType = typename std::remove_cv_t<MappedType>::indexing_policy, unsigned short N, typename real>
requires ((IndexingPolicyType::hasFixedSizes) && (checkIndexingPoliciesCompatiblity< IndexingPolicyType, typename std::remove_cv_t<MappedType>::indexing_policy>()))
TFEL_HOST_DEVICE constexpr auto tfel::math::map (const tvector< N, real > &) noexcept
 create a constant view of a math object from a tiny vector
template<unsigned short M, typename MappedType, unsigned short offset = 0u, unsigned short stride = getViewsArrayMinimalStride<MappedType>(), unsigned short N>
requires (!std::is_const_v<MappedType>)
TFEL_HOST_DEVICE constexpr auto tfel::math::map (tvector< N, ViewsArrayStorageType< MappedType > > &) noexcept
 create a view on an array of fixed sized math objects from a tiny vector
template<unsigned short M, typename MappedType, unsigned short offset = 0u, unsigned short stride = getViewsArrayMinimalStride<MappedType>(), unsigned short N>
TFEL_HOST_DEVICE constexpr auto tfel::math::map (const tvector< N, ViewsArrayStorageType< MappedType > > &)
 create a const view on an array of fixed sized math objects from a tiny vector

Detailed Description

Author
Thomas Helfer
Date
28 Jun 2006