Skip to content

Function sqrt

function sqrt(const T1 &) math

template <numeric T1>
KFR_INTRINSIC flt_type<T1> sqrt(const T1& x)

Returns the positive square root of x. \(\sqrt{x}\)

For negative inputs the result is NaN. Applied element-wise for vector inputs.

Template parameters
T1 Input numeric type.
Parameters
x Value whose square root is computed.
Returns
\(\sqrt{x}\) as flt_type<T1>.

Fully qualified name: kfr::sqrt(const T1 &)

Declared at math/sqrt.hpp:43

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.