Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 441 Bytes

abs2.rst

File metadata and controls

20 lines (14 loc) · 441 Bytes

abs2

Squared absolute value. For complex numbers, this is the squared complex magnitude, or real(t)^2 + imag(t)^2. For real numbers, this is equivalent to the squared value, or t*t.

.. doxygenfunction:: abs2(Op t)

Examples

.. literalinclude:: ../../../../test/00_operators/OperatorTests.cu
   :language: cpp
   :start-after: example-begin abs2-test-1
   :end-before: example-end abs2-test-1
   :dedent: