TGAMMA(3clc)
π TGAMMA π
okay bestie, so this is a page from the OpenCL Manual, and it's literally all about tgamma. it's giving math-girlie main character energy and we are obsessed. π
β¨ NAME β¨
tgamma β the Gamma function. yeah that's it, that's the vibe.
gentype tgamma(gentype );
πΈ DESCRIPTION πΈ
tgamma computes the gamma. fr fr. that's the whole description. iconic of it honestly. π
π¦ NOTES π¦
okay so here's the tea, and there's a lot of it, so buckle up:
- the vector versions of the math functions operate component-wise. the description is per-component. no cap.
- the built-in math functions are not affected by the prevailing rounding mode in the calling environment, and they always return the same value as they would if called with the round to nearest even rounding mode. so whatever your environment thinks it's doing, bestie is unbothered. β¨
- the built-in math functions take scalar or vector arguments. for any specific use of these functions, the actual type has to be the same for all arguments and the return type unless otherwise specified.
- the generic type name
gentypeis used to indicate that the function can takefloat,float2,float3,float4,float8,float16,double,double2,double3,double4,double8, ordouble16as the type for the arguments. - if extended with
cl_khr_fp16(3clc), generic type namegentypemay indicatehalfandhalf{2|3|4|8|16}as arguments and return values. - the generic type name
gentypefis used to indicate that the function can takefloat,float2,float3,float4,float8, orfloat16as the type for the arguments. - the generic type name
gentypedis used to indicate that the function can takedouble,double2,double3,double4,double8, ordouble16as the type for the arguments.
not me listing every single one of those types π but that's literally what it says so we're keeping all of them, periodt.
β SPECIFICATION β
OpenCL Specification[1]
π SEE ALSO π
π AUTHORS π
The Khronos Group
π COPYRIGHT π
Copyright Β© 2007-2011 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and/or associated documentation files (the "Materials"), to deal in the Materials without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Materials, and to permit persons to whom the Materials are furnished to do so, subject to the following conditions:
the above copyright notice and this permission notice shall be included in all copies or substantial portions of the Materials.
π NOTES π
(yes there's a second NOTES section, and yes we're doing it, because the original said so and we don't skip β)
OpenCL Specificationpage 244, section 6.12.2 - Math Functions
and that's the whole page, bestie! πβ¨π¦
cute lil sign-off: this lil legend was brought to you by The Khronos Group, dated 01/14/2021, and the page was literally called TGAMMA(3clc). slay. π
πΈ
π¦ where this page comes from
- ubuntu jammy: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- ubuntu noble: opencl-1.2-man-doc 1.0~svn33624-5 Β· other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms