Klang C++ 0.7.15
Language Reference (draft)
Loading...
Searching...
No Matches
sqr

Language Guide / Functions ยท Generated API signature

sqr

klang::sqr

Squares its input.

Multiplies the input by itself. Squaring a signed sample can give a non-negative value for a power calculation.

-20-11021324ResultInput x
sqr(x)

Direct call

const signal power = sqr(sample);

Signal flow

const signal power = sample >> sqr;