Changeset aa033c2 for src


Ignore:
Timestamp:
Dec 16, 2013, 12:21:58 AM (10 years ago)
Author:
Paul Brossier <piem@piem.org>
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
Message:

src/vecutils.*: update for history

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/vecutils.c

    ra7e766b raa033c2  
    1717#define AUBIO_OP_C_AND_F(OPNAME, OP) \
    1818  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)
    2021
    2122AUBIO_OP_C_AND_F(exp, EXP)
  • src/vecutils.h

    ra7e766b raa033c2  
    115115
    116116*/
    117 void cvec_exp (cvec_t *s);
     117void cvec_norm_exp (cvec_t *s);
    118118
    119119/** compute \f$cos(x)\f$ of each vector norm elements
     
    122122
    123123*/
    124 void cvec_cos (cvec_t *s);
     124void cvec_norm_cos (cvec_t *s);
    125125
    126126/** compute \f$sin(x)\f$ of each vector norm elements
     
    129129
    130130*/
    131 void cvec_sin (cvec_t *s);
     131void cvec_norm_sin (cvec_t *s);
    132132
    133133/** compute the \f$abs(x)\f$ of each vector norm elements
     
    136136
    137137*/
    138 void cvec_abs (cvec_t *s);
     138void cvec_norm_abs (cvec_t *s);
    139139
    140140/** compute the \f$sqrt(x)\f$ of each vector norm elements
     
    143143
    144144*/
    145 void cvec_sqrt (cvec_t *s);
     145void cvec_norm_sqrt (cvec_t *s);
    146146
    147147/** compute the \f$log10(x)\f$ of each vector norm elements
     
    150150
    151151*/
    152 void cvec_log10 (cvec_t *s);
     152void cvec_norm_log10 (cvec_t *s);
    153153
    154154/** compute the \f$log(x)\f$ of each vector norm elements
     
    157157
    158158*/
    159 void cvec_log (cvec_t *s);
     159void cvec_norm_log (cvec_t *s);
    160160
    161161/** compute the \f$floor(x)\f$ of each vector norm elements
     
    164164
    165165*/
    166 void cvec_floor (cvec_t *s);
     166void cvec_norm_floor (cvec_t *s);
    167167
    168168/** compute the \f$ceil(x)\f$ of each vector norm elements
     
    171171
    172172*/
    173 void cvec_ceil (cvec_t *s);
     173void cvec_norm_ceil (cvec_t *s);
    174174
    175175/** compute the \f$round(x)\f$ of each vector norm elements
     
    178178
    179179*/
    180 void cvec_round (cvec_t *s);
     180void cvec_norm_round (cvec_t *s);
    181181
    182182/** raise each vector norm elements to the power pow
     
    186186
    187187*/
    188 void cvec_pow (cvec_t *s, smpl_t pow);
     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);
    189267
    190268#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.