Skip to content

Function square

function square(const T1 &) dsp

template <numeric T1>
KFR_FUNCTION T1 square(const T1& x)

Square wave of a phase in radians.

Parameters
x Phase in radians.
Returns
+1 or -1.

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

Function square

function square(E1 &&) dsp

template <expression_argument E1>
KFR_FUNCTION expression_function<fn::square, E1> square(E1&& x)

Expression overload of square ; applies element-wise to an expression.

Parameters
x Phase expression in radians.
Returns
Lazily-evaluated expression producing +1 or -1.

Fully qualified name: kfr::square(E1 &&)

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