Changeset 6940b55 for src/vecutils.c


Ignore:
Timestamp:
Sep 28, 2009, 9:27:10 PM (15 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:
d90db7d4
Parents:
d37400c
Message:

src/vecutils.{c,h}: expand header and add documentation, add cvec_pow, fix SAFE_LOG macros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/vecutils.c

    rd37400c r6940b55  
    2626AUBIO_OP_C_AND_F(abs, ABS)
    2727AUBIO_OP_C_AND_F(sqrt, SQRT)
    28 AUBIO_OP_C_AND_F(log10, SAFELOG10)
    29 AUBIO_OP_C_AND_F(log, SAFELOG)
     28AUBIO_OP_C_AND_F(log10, SAFE_LOG10)
     29AUBIO_OP_C_AND_F(log, SAFE_LOG)
    3030AUBIO_OP_C_AND_F(floor, FLOOR)
    3131AUBIO_OP_C_AND_F(ceil, CEIL)
     
    4343}
    4444
     45void cvec_pow (cvec_t *s, smpl_t power)
     46{
     47  uint_t i,j;
     48  for (i = 0; i < s->channels; i++) {
     49    for (j = 0; j < s->length; j++) {
     50      s->norm[i][j] = POW(s->norm[i][j], power);
     51    }
     52  }
     53}
     54
Note: See TracChangeset for help on using the changeset viewer.