Edge AI Add-on API 3.0.0
Loading...
Searching...
No Matches
nrf_dsp_sum.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_STAT_SUM_FUNCTIONS_H_
16#define _NRF_DSP_STAT_SUM_FUNCTIONS_H_
17
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
34flt32_t nrf_dsp_sum_f32(const flt32_t *p_input, uint16_t num, nrf_dsp_stat_ctx_f32_t *p_ctx);
35
49 uint16_t num,
50 size32_t stride,
52
63int32_t nrf_dsp_sum_i8(const int8_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i8_t *p_ctx);
64
77int32_t nrf_dsp_sum_i8_s(const int8_t *p_input,
78 uint16_t num,
79 size32_t stride,
81
92int32_t nrf_dsp_sum_i16(const int16_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i16_t *p_ctx);
93
106int32_t nrf_dsp_sum_i16_s(const int16_t *p_input,
107 uint16_t num,
108 size32_t stride,
110
121int64_t nrf_dsp_sum_i32(const int32_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i32_t *p_ctx);
122
135int64_t nrf_dsp_sum_i32_s(const int32_t *p_input,
136 uint16_t num,
137 size32_t stride,
139
140#ifdef __cplusplus
141}
142#endif
143
144#endif /* _NRF_DSP_STAT_SUM_FUNCTIONS_H_ */
145
int32_t nrf_dsp_sum_i8(const int8_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i8_t *p_ctx)
Calculate Sum value of a INT8 fixed-point vector.
flt32_t nrf_dsp_sum_f32(const flt32_t *p_input, uint16_t num, nrf_dsp_stat_ctx_f32_t *p_ctx)
Calculate Sum of values of a floating-point vector.
int32_t nrf_dsp_sum_i8_s(const int8_t *p_input, uint16_t num, size32_t stride, nrf_dsp_stat_ctx_i8_t *p_ctx)
Calculate Sum value of a INT8 fixed-point vector ​​using values ​​in increments of 'stride'.
int64_t nrf_dsp_sum_i32(const int32_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i32_t *p_ctx)
Calculate Sum value of a INT32 fixed-point vector.
int32_t nrf_dsp_sum_i16(const int16_t *p_input, uint16_t num, nrf_dsp_stat_ctx_i16_t *p_ctx)
Calculate Sum value of a INT16 fixed-point vector.
flt32_t nrf_dsp_sum_f32_s(const flt32_t *p_input, uint16_t num, size32_t stride, nrf_dsp_stat_ctx_f32_t *p_ctx)
Calculate Sum value of a floating-point vector ​​using values ​​in increments of 'stride'.
int32_t nrf_dsp_sum_i16_s(const int16_t *p_input, uint16_t num, size32_t stride, nrf_dsp_stat_ctx_i16_t *p_ctx)
Calculate Sum value of a INT16 fixed-point vector ​​using values ​​in increments of 'stride'.
int64_t nrf_dsp_sum_i32_s(const int32_t *p_input, uint16_t num, size32_t stride, nrf_dsp_stat_ctx_i32_t *p_ctx)
Calculate Sum value of a INT32 fixed-point vector ​​using values ​​in increments of 'stride'.
size_t size32_t
Architecture 32-bit size_t type definition.
Definition nrf_edgeai_ctypes.h:31
float flt32_t
32-bit floating-point type definition.
Definition nrf_edgeai_ctypes.h:21
Floating-point statistics reusable context, in which is used to store derived or intermediate metrics...
Definition nrf_dsp_types.h:80
INT16 statistics reusable context, in which is used to store derived or intermediate metrics to simpl...
Definition nrf_dsp_types.h:135
INT32 statistics reusable context, in which is used to store derived or intermediate metrics to simpl...
Definition nrf_dsp_types.h:171
INT8 statistics reusable context, in which is used to store derived or intermediate metrics to simpli...
Definition nrf_dsp_types.h:116