Changeset aa033c2
- Timestamp:
- Dec 16, 2013, 12:21:58 AM (11 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- b155ed03
- Parents:
- a7e766b
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/vecutils.c
ra7e766b raa033c2 17 17 #define AUBIO_OP_C_AND_F(OPNAME, OP) \ 18 18 AUBIO_OP(OPNAME, OP, fvec, data) \ 19 AUBIO_OP(OPNAME, OP, cvec, norm) 19 AUBIO_OP(norm ## _ ## OPNAME, OP, cvec, norm) \ 20 AUBIO_OP(phas ## _ ## OPNAME, OP, cvec, phas) 20 21 21 22 AUBIO_OP_C_AND_F(exp, EXP) -
src/vecutils.h
ra7e766b raa033c2 115 115 116 116 */ 117 void cvec_ exp (cvec_t *s);117 void cvec_norm_exp (cvec_t *s); 118 118 119 119 /** compute \f$cos(x)\f$ of each vector norm elements … … 122 122 123 123 */ 124 void cvec_ cos (cvec_t *s);124 void cvec_norm_cos (cvec_t *s); 125 125 126 126 /** compute \f$sin(x)\f$ of each vector norm elements … … 129 129 130 130 */ 131 void cvec_ sin (cvec_t *s);131 void cvec_norm_sin (cvec_t *s); 132 132 133 133 /** compute the \f$abs(x)\f$ of each vector norm elements … … 136 136 137 137 */ 138 void cvec_ abs (cvec_t *s);138 void cvec_norm_abs (cvec_t *s); 139 139 140 140 /** compute the \f$sqrt(x)\f$ of each vector norm elements … … 143 143 144 144 */ 145 void cvec_ sqrt (cvec_t *s);145 void cvec_norm_sqrt (cvec_t *s); 146 146 147 147 /** compute the \f$log10(x)\f$ of each vector norm elements … … 150 150 151 151 */ 152 void cvec_ log10 (cvec_t *s);152 void cvec_norm_log10 (cvec_t *s); 153 153 154 154 /** compute the \f$log(x)\f$ of each vector norm elements … … 157 157 158 158 */ 159 void cvec_ log (cvec_t *s);159 void cvec_norm_log (cvec_t *s); 160 160 161 161 /** compute the \f$floor(x)\f$ of each vector norm elements … … 164 164 165 165 */ 166 void cvec_ floor (cvec_t *s);166 void cvec_norm_floor (cvec_t *s); 167 167 168 168 /** compute the \f$ceil(x)\f$ of each vector norm elements … … 171 171 172 172 */ 173 void cvec_ ceil (cvec_t *s);173 void cvec_norm_ceil (cvec_t *s); 174 174 175 175 /** compute the \f$round(x)\f$ of each vector norm elements … … 178 178 179 179 */ 180 void cvec_ round (cvec_t *s);180 void cvec_norm_round (cvec_t *s); 181 181 182 182 /** raise each vector norm elements to the power pow … … 186 186 187 187 */ 188 void cvec_pow (cvec_t *s, smpl_t pow); 188 void 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 */ 195 void 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 */ 202 void 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 */ 209 void 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 */ 216 void 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 */ 223 void 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 */ 230 void 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 */ 237 void 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 */ 244 void 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 */ 251 void 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 */ 258 void 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 */ 266 void cvec_phas_pow (cvec_t *s, smpl_t pow); 189 267 190 268 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.