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

Classes

struct  tfel::math::IsTVectorScalarOperationValid< T, T2, Op >
struct  tfel::math::DerivativeTypeDispatcher< VectorTag, ScalarTag, tvector< N, TVectorNumericType >, ScalarType >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  tfel::math::DerivativeTypeDispatcher< ScalarTag, VectorTag, ScalarType, tvector< N, TVectorNumericType > >
 partial specialisation of the DerivativeTypeDispatcher metafunction. More...
struct  tfel::math::tvector< N, ValueType >
 a class representing tiny vectors of fixed size. More...
struct  tfel::typetraits::IsAssignableTo< tfel::math::tvector< N, T2 >, tfel::math::tvector< N, T > >
 partial specialisation for tvectors More...
struct  std::tuple_size< tfel::math::tvector< N, ValueType > >
 partial specialisation of the std::tuple_size for tfel::math::tvector More...
struct  std::tuple_element< I, tfel::math::tvector< N, ValueType > >
 partial specialisation of the std::tuple_element for tfel::math::tvector More...

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.

Typedefs

template<unsigned short N, typename T>
using tfel::math::TVectorView = View<tvector<N, T>>
 a simple alias for backward compatibility
template<unsigned short N, typename T>
using tfel::math::ConstTVectorView = ConstView<tvector<N, T>>
 a simple alias for backward compatibility

Functions

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<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 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
template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr std::tuple_element_t< i, tvector< N, ValueType > > & tfel::math::get (tvector< N, ValueType > &v) noexcept
 partial specialisation of std::get for tfel::math::tvector
template<std::size_t i, unsigned short N, typename ValueType>
TFEL_HOST_DEVICE constexpr const std::tuple_element_t< i, tvector< N, ValueType > > & tfel::math::get (const tvector< N, ValueType > &v) noexcept
 partial specialisation of std::get for tfel::math::tvector
template<typename... T>
 tfel::math::tvector (T &&... t) -> tvector< sizeof...(T), std::common_type_t< T... > >

Detailed Description

Author
Thomas Helfer