Edge AI Add-on API 2.2.0
Loading...
Searching...
No Matches
nrf_dsp_quantization.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
15#ifndef _NRF_DSP_SUPPORT_QUANTIZATION_H_
16#define _NRF_DSP_SUPPORT_QUANTIZATION_H_
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
23
39void nrf_dsp_quantize_f32_to_i8(const flt32_t* p_input, int8_t* p_out, uint16_t num);
40
56void nrf_dsp_quantize_f32_to_i16(const flt32_t* p_input, int16_t* p_out, uint16_t num);
57
73void nrf_dsp_quantize_f32_to_i32(const flt32_t* p_input, int32_t* p_out, uint16_t num);
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif /* _NRF_DSP_SUPPORT_QUANTIZATION_H_ */
80
void nrf_dsp_quantize_f32_to_i8(const flt32_t *p_input, int8_t *p_out, uint16_t num)
Quantize the elements of the floating-point vector to INT8 vector.
void nrf_dsp_quantize_f32_to_i32(const flt32_t *p_input, int32_t *p_out, uint16_t num)
Quantize the elements of the floating-point vector to INT32 vector.
void nrf_dsp_quantize_f32_to_i16(const flt32_t *p_input, int16_t *p_out, uint16_t num)
Quantize the elements of the floating-point vector to INT16 vector.
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21