/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-6.2.0/rocAL/include/api/rocal_api_parameters.h Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-6.2.0/rocAL/include/api/rocal_api_parameters.h Source File#

rocAL: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-6.2.0/rocAL/include/api/rocal_api_parameters.h Source File
rocal_api_parameters.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2019 - 2023 Advanced Micro Devices, Inc. All rights reserved.
3 
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 THE SOFTWARE.
21 */
22 
23 #ifndef MIVISIONX_ROCAL_API_PARAMETERS_H
24 #define MIVISIONX_ROCAL_API_PARAMETERS_H
25 #include "rocal_api_types.h"
26 
41 extern "C" void ROCAL_API_CALL rocalSetSeed(unsigned seed);
42 
49 extern "C" unsigned ROCAL_API_CALL rocalGetSeed();
50 
60 
70 extern "C" RocalStatus ROCAL_API_CALL rocalUpdateIntUniformRand(int start, int end, RocalIntParam updating_obj);
71 
80 
89 
98 extern "C" RocalFloatParam ROCAL_API_CALL rocalCreateFloatUniformRand(float start, float end);
99 
108 
117 
127 
137 
147 extern "C" RocalStatus ROCAL_API_CALL rocalUpdateFloatUniformRand(float start, float end, RocalFloatParam updating_obj);
148 
158 extern "C" RocalIntParam ROCAL_API_CALL rocalCreateIntRand(const int *values, const double *frequencies, unsigned size);
159 
170 extern "C" RocalStatus ROCAL_API_CALL rocalUpdateIntRand(const int *values, const double *frequencies, unsigned size, RocalIntParam updating_obj);
171 
180 extern "C" RocalFloatParam ROCAL_API_CALL rocalCreateFloatRand(const float *values, const double *frequencies, unsigned size);
181 
192 extern "C" RocalStatus ROCAL_API_CALL rocalUpdateFloatRand(const float *values, const double *frequencies, unsigned size, RocalFloatParam updating_obj);
193 
194 #endif // MIVISIONX_ROCAL_API_PARAMETERS_H
RocalFloatParam ROCAL_API_CALL rocalCreateFloatUniformRand(float start, float end)
rocalCreateFloatUniformRand
RocalIntParam ROCAL_API_CALL rocalCreateIntUniformRand(int start, int end)
rocalCreateIntUniformRand
RocalStatus ROCAL_API_CALL rocalUpdateIntUniformRand(int start, int end, RocalIntParam updating_obj)
rocalUpdateIntUniformRand
int ROCAL_API_CALL rocalGetIntValue(RocalIntParam obj)
rocalGetIntValue
RocalStatus ROCAL_API_CALL rocalUpdateFloatParameter(float new_val, RocalFloatParam input_obj)
rocalUpdateFloatParameter
RocalIntParam ROCAL_API_CALL rocalCreateIntParameter(int val)
rocalCreateIntParameter
RocalStatus ROCAL_API_CALL rocalUpdateIntParameter(int new_val, RocalIntParam input_obj)
rocalUpdateIntParameter
RocalStatus ROCAL_API_CALL rocalUpdateFloatUniformRand(float start, float end, RocalFloatParam updating_obj)
rocalUpdateFloatUniformRand
float ROCAL_API_CALL rocalGetFloatValue(RocalFloatParam obj)
rocalGetFloatValue
void ROCAL_API_CALL rocalSetSeed(unsigned seed)
rocalSetSeed
RocalStatus ROCAL_API_CALL rocalUpdateIntRand(const int *values, const double *frequencies, unsigned size, RocalIntParam updating_obj)
rocalUpdateIntRand
RocalIntParam ROCAL_API_CALL rocalCreateIntRand(const int *values, const double *frequencies, unsigned size)
rocalCreateIntRand
unsigned ROCAL_API_CALL rocalGetSeed()
rocalGetSeed
RocalStatus ROCAL_API_CALL rocalUpdateFloatRand(const float *values, const double *frequencies, unsigned size, RocalFloatParam updating_obj)
rocalUpdateFloatRand
RocalFloatParam ROCAL_API_CALL rocalCreateFloatParameter(float val)
rocalCreateFloatParameter
RocalFloatParam ROCAL_API_CALL rocalCreateFloatRand(const float *values, const double *frequencies, unsigned size)
Sets the parameters for a new or existing RocalFloatRandGen object.
RocalStatus
rocAL Status enum
Definition: rocal_api_types.h:113
void * RocalIntParam
typedef void* rocAL Int Param
Definition: rocal_api_types.h:57
void * RocalFloatParam
typedef void* Float Param
Definition: rocal_api_types.h:53
The AMD rocAL Library - Types.
#define ROCAL_API_CALL
Definition: rocal_api_types.h:35