Changeset 012466b
- Timestamp:
- Sep 26, 2009, 4:44:00 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:
- 342e3807
- Parents:
- 9e0dd58
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/cvec.c
r9e0dd58 r012466b 100 100 } 101 101 102 void cvec_set(cvec_t *s, smpl_t val) { 103 uint_t i,j; 104 for (i=0; i< s->channels; i++) { 105 for (j=0; j< s->length; j++) { 106 s->norm[i][j] = val; 107 } 108 } 109 } 110 111 void cvec_zeros(cvec_t *s) { 112 cvec_set(s, 0.); 113 } 114 115 void cvec_ones(cvec_t *s) { 116 cvec_set(s, 1.); 117 } 118 -
src/cvec.h
r9e0dd58 r012466b 189 189 void cvec_print(cvec_t *s); 190 190 191 /** set all elements to a given value 192 193 \param s vector to modify 194 \param val value to set elements to 195 196 */ 197 void cvec_set(cvec_t *s, smpl_t val); 198 199 /** set all elements to zero 200 201 \param s vector to modify 202 203 */ 204 void cvec_zeros(cvec_t *s); 205 206 /** set all elements to ones 207 208 \param s vector to modify 209 210 */ 211 void cvec_ones(cvec_t *s); 212 191 213 #ifdef __cplusplus 192 214 }
Note: See TracChangeset
for help on using the changeset viewer.