TGAMMA(3clc)

πŸ“¦
version 1.0~svn33624 Β· 3 versions
, in ubuntu jammy, ubuntu noble

πŸ’– 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 gentype is used to indicate that the function can take float, float2, float3, float4, float8, float16, double, double2, double3, double4, double8, or double16 as the type for the arguments.
  • if extended with cl_khr_fp16(3clc), generic type name gentype may indicate half and half{2|3|4|8|16} as arguments and return values.
  • the generic type name gentypef is used to indicate that the function can take float, float2, float3, float4, float8, or float16 as the type for the arguments.
  • the generic type name gentyped is used to indicate that the function can take double, double2, double3, double4, double8, or double16 as 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 Β© 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 βœ‹)

  1. OpenCL Specification page 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