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

maxmag,_minmag - Returns the argument with the greatest (or least) magnitude.

Authors

TheKhronosGroup

Description

maxmag Returns x if | x| > |y|, or y if |y| > |x|, otherwise fmax(3clc)(x, y).

       minmag Returns x if |x| < |y|, or y if |y| < |x|, otherwise fmin(3clc)(x, y).

Name

       maxmag,_minmag - Returns the argument with the greatest (or least) magnitude.

       gentypemaxmag(gentypex,gentypey);gentypeminmag(gentypex,gentypey);

Notes

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

The Khronos Group                                  11/18/2024                               MAXMAG,MINMAG(3clc)

See Also

mathFunctions(3clc)

Specification

OpenCLSpecification[1]

See Also