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

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-rocal/checkouts/docs-6.2.1/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.1/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 
39 extern "C" void ROCAL_API_CALL rocalSetSeed(unsigned seed);
40 
45 extern "C" unsigned ROCAL_API_CALL rocalGetSeed();
46 
54 
62 extern "C" RocalStatus ROCAL_API_CALL rocalUpdateIntUniformRand(int start, int end, RocalIntParam updating_obj);
63 
70 
77 
84 extern "C" RocalFloatParam ROCAL_API_CALL rocalCreateFloatUniformRand(float start, float end);
85 
92 
99 
107 
115 
123 extern "C" RocalStatus ROCAL_API_CALL rocalUpdateFloatUniformRand(float start, float end, RocalFloatParam updating_obj);
124 
132 extern "C" RocalIntParam ROCAL_API_CALL rocalCreateIntRand(const int *values, const double *frequencies, unsigned size);
133 
142 extern "C" RocalStatus ROCAL_API_CALL rocalUpdateIntRand(const int *values, const double *frequencies, unsigned size, RocalIntParam updating_obj);
143 
151 extern "C" RocalFloatParam ROCAL_API_CALL rocalCreateFloatRand(const float *values, const double *frequencies, unsigned size);
152 
161 extern "C" RocalStatus ROCAL_API_CALL rocalUpdateFloatRand(const float *values, const double *frequencies, unsigned size, RocalFloatParam updating_obj);
162 
163 #endif // MIVISIONX_ROCAL_API_PARAMETERS_H
RocalFloatParam ROCAL_API_CALL rocalCreateFloatUniformRand(float start, float end)
Creates a new uniform random float parameter within a specified range.
RocalIntParam ROCAL_API_CALL rocalCreateIntUniformRand(int start, int end)
Creates a new uniform random integer parameter within a specified range.
RocalStatus ROCAL_API_CALL rocalUpdateIntUniformRand(int start, int end, RocalIntParam updating_obj)
updates uniform random integer parameter within a specified range.
int ROCAL_API_CALL rocalGetIntValue(RocalIntParam obj)
gets the value of a RocalIntParam.
RocalStatus ROCAL_API_CALL rocalUpdateFloatParameter(float new_val, RocalFloatParam input_obj)
Updates a float parameter with a new value.
RocalIntParam ROCAL_API_CALL rocalCreateIntParameter(int val)
Creates a new int parameter with a specified value.
RocalStatus ROCAL_API_CALL rocalUpdateIntParameter(int new_val, RocalIntParam input_obj)
Updates a integer parameter with a new value.
RocalStatus ROCAL_API_CALL rocalUpdateFloatUniformRand(float start, float end, RocalFloatParam updating_obj)
updates uniform random float parameter within a specified range.
float ROCAL_API_CALL rocalGetFloatValue(RocalFloatParam obj)
gets the value of a RocalFloatParam.
void ROCAL_API_CALL rocalSetSeed(unsigned seed)
set seed for random number generation
RocalStatus ROCAL_API_CALL rocalUpdateIntRand(const int *values, const double *frequencies, unsigned size, RocalIntParam updating_obj)
update the int random value
RocalIntParam ROCAL_API_CALL rocalCreateIntRand(const int *values, const double *frequencies, unsigned size)
Sets the parameters for a new or existing RocalIntRandGen object.
unsigned ROCAL_API_CALL rocalGetSeed()
gets the seed value
RocalStatus ROCAL_API_CALL rocalUpdateFloatRand(const float *values, const double *frequencies, unsigned size, RocalFloatParam updating_obj)
update the float random value
RocalFloatParam ROCAL_API_CALL rocalCreateFloatParameter(float val)
Creates a new float parameter with a specified value.
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:112
void * RocalIntParam
typedef void* rocAL Int Param
Definition: rocal_api_types.h:58
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