Description Usage Arguments Value Examples
The function will create a scalar variable, it is only useful in the openCL functions. It can also be called in R, but its argument will not take any effect.
1 |
precision |
The variable type, please refer to |
constDef |
Specify if the variable can be redefined. The package will automatically update the variable definition when it is needed, if you do not need this feature, you can manually turn the feature off. It is useful in some special cases such as turning off the auto update to do the integer division (By default, the package will convert the variable to the default float type before doing the division). |
a variable initialize with 0.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.