E.V.E
v2023.02.15
 
Loading...
Searching...
No Matches

◆ cos_int

eve::cos_int = functor<cos_int_t>
inlineconstexpr

Header file

#include <eve/module/special.hpp>

Callable Signatures

namespace eve
{
// Regular overload
constexpr auto cos_int(floating_value auto x) noexcept; // 1
// Lanes masking
constexpr auto cos_int[conditional_expr auto c](/*any of the above overloads*/) noexcept; // 2
constexpr auto cos_int[logical_value auto m](/*any of the above overloads*/) noexcept; // 2
}
Specifies that a type is a Conditional Expression.
Definition conditional.hpp:28
The concept floating_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition value.hpp:116
The concept logical_value<T> is satisfied if and only if T satisfies eve::value and the element type ...
Definition value.hpp:134
constexpr auto cos_int
elementwise_callable object computing the cosine integral .
Definition cos_int.hpp:74
typename decltype(detail::as_translated_type(as< T >{}))::type translate_t
Returns the final translated type of T.
Definition translation.hpp:107
EVE Main Namespace.
Definition abi.hpp:19

Parameters

Return value

  1. The value of the cosine integral \( \mathbf{Ci}(x) = \displaystyle -\int_x^\infty \frac{\cos t}{t}\;\mbox{d}t\), is returned.
  2. The operation is performed conditionnaly.

External references

Example

// revision 1
#include <eve/module/special.hpp>
#include <iostream>
int main()
{
eve::wide w = {0.0, -1.0, 1.0, 2.0, 50.0,
std::cout << "<- w = " << w << "\n";
std::cout << "-> cos_int(w) = " << eve::cos_int(w) << "\n";
std::cout << "-> cos_int[ignore_last(2)](w) = " << eve::cos_int[eve::ignore_last(2)](w) << "\n";
std::cout << "-> cos_int[w <= 2.0](w) = " << eve::cos_int[w <= 2.0](w) << "\n";
}
constexpr auto nan
Computes the IEEE quiet NaN constant.
Definition nan.hpp:67
constexpr auto minf
Computes the -infinity ieee value.
Definition minf.hpp:67
constexpr auto inf
Computes the infinity ieee value.
Definition inf.hpp:67
Conditional expression ignoring the k last lanes from a eve::simd_value.
Definition conditional.hpp:320
Wrapper for SIMD registers.
Definition wide.hpp:94