logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pow,_pown,_powr,_half_powr,_native_powr - Compute x to the power of y.

Authors

TheKhronosGroup

Description

pow Computes x to the power of y.

       pown Computes x to the power of y, where y is an integer.

       powr Computes x to the power of y, where x is ≥ 0.

       half_powr Computes x to the power of y, where x is ≥ 0.

       native_powr Computes x to the power of y, where x is ≥ 0. The range of x and y are
       implementation-defined. The maximum error is implementation-defined.

Name

       pow,_pown,_powr,_half_powr,_native_powr - Compute x to the power of y.

       gentypepow(gentypex,gentypey);floatnpown(floatnx,intny);floatpown(floatx,inty);doublenpown(doublenx,intny);doublepown(doublex,inty);gentypepowr(gentypex,gentypey);gentypehalf_powr(gentypex,gentypey);gentypenative_powr(gentypex,gentypey);halfnpown(halfnx,intny);halfpown(halfx,inty);

Notes

        1. OpenCL Specification
           page 244, section 6.12.2 - Math Functions

The Khronos Group                                  11/18/2024                         POW,POWN,POWR,HAL(3clc)

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also