batmat 0.0.13
Batched linear algebra routines
Loading...
Searching...
No Matches
rsqrt.hpp File Reference
#include <batmat/simd.hpp>

Go to the source code of this file.

Inverse square root

template<std::floating_point T>
batmat::ops::rsqrt (T x)
 Inverse square root.
template<class T, class Abi>
datapar::simd< T, Abi > batmat::ops::rsqrt (datapar::simd< T, Abi > x)
 Inverse square root.

Namespaces

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

Functions

template<class T, class Abi>
datapar::simd< T, Abi > batmat::ops::detail::rsqrt_1 (datapar::simd< T, Abi > x)
 rsqrt_0 with a single Newton iteration of refinement.
template<class T, class Abi>
datapar::simd< T, Abi > batmat::ops::detail::rsqrt_2 (datapar::simd< T, Abi > x)
 rsqrt_0 with two Newton iterations of refinement.