- Timestamp:
- Dec 4, 2009, 1:46:04 AM (15 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:
- 4621cd6
- Parents:
- 7dec719
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/vecutils.c
r7dec719 rc17a0ee 9 9 void TYPE ## _ ## OPNAME (TYPE ## _t *o) \ 10 10 { \ 11 uint_t i,j; \ 12 for (i = 0; i < o->channels; i++) { \ 13 for (j = 0; j < o->length; j++) { \ 14 o->OBJ[i][j] = OP (o->OBJ[i][j]); \ 15 } \ 11 uint_t j; \ 12 for (j = 0; j < o->length; j++) { \ 13 o->OBJ[j] = OP (o->OBJ[j]); \ 16 14 } \ 17 15 } … … 35 33 void fvec_pow (fvec_t *s, smpl_t power) 36 34 { 37 uint_t i,j; 38 for (i = 0; i < s->channels; i++) { 39 for (j = 0; j < s->length; j++) { 40 s->data[i][j] = POW(s->data[i][j], power); 41 } 35 uint_t j; 36 for (j = 0; j < s->length; j++) { 37 s->data[j] = POW(s->data[j], power); 42 38 } 43 39 } … … 45 41 void cvec_pow (cvec_t *s, smpl_t power) 46 42 { 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 } 43 uint_t j; 44 for (j = 0; j < s->length; j++) { 45 s->norm[j] = POW(s->norm[j], power); 52 46 } 53 47 }
Note: See TracChangeset
for help on using the changeset viewer.