MISCVECTORFUNCTIONS(3clc)
โจ MISCELLANEOUS VECTOR โ the 3clc page, OpenCL Manual edition ๐
okay bestie, buckle UP, because this is the lil index page for the miscellaneous vector functions and it's short but it's iconic. It's giving "table of contents but make it fashion". No cap. ๐ฆ
๐ธ NAME ๐ธ
Miscellaneous_Vector_Functions โ and fr fr, here's the whole vibe: the table below describes the list of built-in miscelaneous vector functions. (Yes, the original spells it "miscelaneous" โ we're keeping it, we don't fix, we don't touch, we preserve. ๐)
Here's the rundown, table-style but make it group chat:
vec_step(3clc)โ takes a built-in scalar or vector data type argument and returns an integer value representing the number of elements in the scalar or vector. Lowkey the most useful lil counter ever. ๐shuffle(3clc), โ constructs a permutation of elements from one (or two) input vectors.shuffle(3clc)โ constructs a permutation of elements from one (or two) input vectors. (Yes bestie, it's listed twice in the original. That's not a typo on my end, that's just the page living its truth. We keep both. โจ)
๐ SPECIFICATION ๐
OpenCL Specification[1] โ the source of truth, the blueprint, the moment. ๐
๐ SEE ALSO ๐
cl_khr_fp16(3clc)โ go read that one too, bestie, it's the half-float extension and it's a whole vibe. ๐
๐ซถ AUTHORS ๐ซถ
The Khronos Group. Legends. Icons. They did that. ๐
๐ 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 condition that this copyright notice and permission notice shall be included in all copies or substantial portions of the Materials.
That's the whole license, verbatim, no edits, no vibes-only summary. Respect the paperwork bestie, it's literally the law. ๐
๐ NOTES ๐
OpenCL Specificationโ page 282, section 6.12.12 Miscellaneous Vector Functions. Go read it if you wanna go deeper. iykyk. ๐ง
k that's the page!! stay slay, stay vectorized, and remember: vec_step(3clc) counts your elements and shuffle(3clc) rearranges them, and you're the main character of both. ๐ฆ๐
Signed off with love by The Khronos Group, dated 01/14/2021, from the MISCELLANEOUS VECTOR(3clc) page itself. Byeeee โจ๐
๐ฆ 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