source: src/vecutils.h @ aa033c2

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since aa033c2 was aa033c2, checked in by Paul Brossier <piem@piem.org>, 10 years ago

src/vecutils.*: update for history

  • Property mode set to 100644
File size: 4.9 KB
Line 
1/*
2  Copyright (C) 2009-2013 Paul Brossier <piem@aubio.org>
3
4  This file is part of aubio.
5
6  aubio is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10
11  aubio is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  GNU General Public License for more details.
15
16  You should have received a copy of the GNU General Public License
17  along with aubio.  If not, see <http://www.gnu.org/licenses/>.
18
19*/
20
21/** \file
22
23  Utility functions for ::fvec_t and ::cvec_t objects
24
25 */
26
27#ifndef _AUBIO__VECUTILS_H
28#define _AUBIO__VECUTILS_H
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34/** compute \f$e^x\f$ of each vector elements
35
36  \param s vector to modify
37
38*/
39void fvec_exp (fvec_t *s);
40
41/** compute \f$cos(x)\f$ of each vector elements
42
43  \param s vector to modify
44
45*/
46void fvec_cos (fvec_t *s);
47
48/** compute \f$sin(x)\f$ of each vector elements
49
50  \param s vector to modify
51
52*/
53void fvec_sin (fvec_t *s);
54
55/** compute the \f$abs(x)\f$ of each vector elements
56
57  \param s vector to modify
58
59*/
60void fvec_abs (fvec_t *s);
61
62/** compute the \f$sqrt(x)\f$ of each vector elements
63
64  \param s vector to modify
65
66*/
67void fvec_sqrt (fvec_t *s);
68
69/** compute the \f$log10(x)\f$ of each vector elements
70
71  \param s vector to modify
72
73*/
74void fvec_log10 (fvec_t *s);
75
76/** compute the \f$log(x)\f$ of each vector elements
77
78  \param s vector to modify
79
80*/
81void fvec_log (fvec_t *s);
82
83/** compute the \f$floor(x)\f$ of each vector elements
84
85  \param s vector to modify
86
87*/
88void fvec_floor (fvec_t *s);
89
90/** compute the \f$ceil(x)\f$ of each vector elements
91
92  \param s vector to modify
93
94*/
95void fvec_ceil (fvec_t *s);
96
97/** compute the \f$round(x)\f$ of each vector elements
98
99  \param s vector to modify
100
101*/
102void fvec_round (fvec_t *s);
103
104/** raise each vector elements to the power pow
105
106  \param s vector to modify
107  \param pow power to raise to
108
109*/
110void fvec_pow (fvec_t *s, smpl_t pow);
111
112/** compute \f$e^x\f$ of each vector norm elements
113
114  \param s vector to modify
115
116*/
117void cvec_norm_exp (cvec_t *s);
118
119/** compute \f$cos(x)\f$ of each vector norm elements
120
121  \param s vector to modify
122
123*/
124void cvec_norm_cos (cvec_t *s);
125
126/** compute \f$sin(x)\f$ of each vector norm elements
127
128  \param s vector to modify
129
130*/
131void cvec_norm_sin (cvec_t *s);
132
133/** compute the \f$abs(x)\f$ of each vector norm elements
134
135  \param s vector to modify
136
137*/
138void cvec_norm_abs (cvec_t *s);
139
140/** compute the \f$sqrt(x)\f$ of each vector norm elements
141
142  \param s vector to modify
143
144*/
145void cvec_norm_sqrt (cvec_t *s);
146
147/** compute the \f$log10(x)\f$ of each vector norm elements
148
149  \param s vector to modify
150
151*/
152void cvec_norm_log10 (cvec_t *s);
153
154/** compute the \f$log(x)\f$ of each vector norm elements
155
156  \param s vector to modify
157
158*/
159void cvec_norm_log (cvec_t *s);
160
161/** compute the \f$floor(x)\f$ of each vector norm elements
162
163  \param s vector to modify
164
165*/
166void cvec_norm_floor (cvec_t *s);
167
168/** compute the \f$ceil(x)\f$ of each vector norm elements
169
170  \param s vector to modify
171
172*/
173void cvec_norm_ceil (cvec_t *s);
174
175/** compute the \f$round(x)\f$ of each vector norm elements
176
177  \param s vector to modify
178
179*/
180void cvec_norm_round (cvec_t *s);
181
182/** raise each vector norm elements to the power pow
183
184  \param s vector to modify
185  \param pow power to raise to
186
187*/
188void cvec_norm_pow (cvec_t *s, smpl_t pow);
189
190/** compute \f$e^x\f$ of each vector phas elements
191
192  \param s vector to modify
193
194*/
195void cvec_phas_exp (cvec_t *s);
196
197/** compute \f$cos(x)\f$ of each vector phas elements
198
199  \param s vector to modify
200
201*/
202void cvec_phas_cos (cvec_t *s);
203
204/** compute \f$sin(x)\f$ of each vector phas elements
205
206  \param s vector to modify
207
208*/
209void cvec_phas_sin (cvec_t *s);
210
211/** compute the \f$abs(x)\f$ of each vector phas elements
212
213  \param s vector to modify
214
215*/
216void cvec_phas_abs (cvec_t *s);
217
218/** compute the \f$sqrt(x)\f$ of each vector phas elements
219
220  \param s vector to modify
221
222*/
223void cvec_phas_sqrt (cvec_t *s);
224
225/** compute the \f$log10(x)\f$ of each vector phas elements
226
227  \param s vector to modify
228
229*/
230void cvec_phas_log10 (cvec_t *s);
231
232/** compute the \f$log(x)\f$ of each vector phas elements
233
234  \param s vector to modify
235
236*/
237void cvec_phas_log (cvec_t *s);
238
239/** compute the \f$floor(x)\f$ of each vector phas elements
240
241  \param s vector to modify
242
243*/
244void cvec_phas_floor (cvec_t *s);
245
246/** compute the \f$ceil(x)\f$ of each vector phas elements
247
248  \param s vector to modify
249
250*/
251void cvec_phas_ceil (cvec_t *s);
252
253/** compute the \f$round(x)\f$ of each vector phas elements
254
255  \param s vector to modify
256
257*/
258void cvec_phas_round (cvec_t *s);
259
260/** raise each vector phas elements to the power pow
261
262  \param s vector to modify
263  \param pow power to raise to
264
265*/
266void cvec_phas_pow (cvec_t *s, smpl_t pow);
267
268#ifdef __cplusplus
269}
270#endif
271
272#endif /* _AUBIO__VECUTILS_H */
Note: See TracBrowser for help on using the repository browser.