batmat 0.0.14
Batched linear algebra routines
Loading...
Searching...
No Matches
cneg.hpp File Reference
#include <batmat/assume.hpp>
#include <batmat/simd.hpp>
#include <bit>
#include <cmath>
#include <cstdint>
#include <limits>
#include <type_traits>

Go to the source code of this file.

Conditional negation of floating point numbers

template<class T>
batmat::ops::detail::cneg (T x, T signs)
 Conditionally negates the sign bit of x, depending on signs, which should contain only ±0 (i.e.
template<class T, class Abi>
batmat::ops::detail::cneg (T x, T signs)
 Conditionally negates the sign bit of x, depending on signs, which should contain only ±0 (i.e.
template<class T, class Abi>
datapar::simd< T, Abi > batmat::ops::detail::cneg (datapar::simd< T, Abi > x, datapar::simd< T, Abi > signs)
 Conditionally negates the sign bit of x, depending on signs, which should contain only ±0 (i.e.

Classes

struct  batmat::ops::detail::floating_point_to_int< float >
struct  batmat::ops::detail::floating_point_to_int< double >

Namespaces

namespace  batmat
namespace  batmat::ops
namespace  batmat::ops::detail

Typedefs

template<class T>
using batmat::ops::detail::floating_point_to_int_t = typename floating_point_to_int<T>::type

Functions

template<class T>
batmat::ops::cneg (T x, T signs)
 Conditionally negates the sign bit of x, depending on signs, which should contain only ±0 (i.e.

Class Documentation

◆ batmat::ops::detail::floating_point_to_int< float >

struct batmat::ops::detail::floating_point_to_int< float >
Class Members
typedef uint32_t type std::uint32_t

◆ batmat::ops::detail::floating_point_to_int< double >

struct batmat::ops::detail::floating_point_to_int< double >
Class Members
typedef uint64_t type std::uint64_t