Changeset b849106
- Timestamp:
- Oct 19, 2009, 2:58:31 PM (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:
- 3f99693
- Parents:
- b01bd4a
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/lvec.c
rb01bd4a rb849106 75 75 } 76 76 77 void lvec_set(lvec_t *s, smpl_t val) { 78 uint_t i,j; 79 for (i=0; i< s->channels; i++) { 80 for (j=0; j< s->length; j++) { 81 s->data[i][j] = val; 82 } 83 } 84 } 85 86 void lvec_zeros(lvec_t *s) { 87 lvec_set(s, 0.); 88 } 89 90 void lvec_ones(lvec_t *s) { 91 lvec_set(s, 1.); 92 } 93 -
src/lvec.h
rb01bd4a rb849106 123 123 void lvec_print(lvec_t *s); 124 124 125 /** set all elements to a given value 126 127 \param s vector to modify 128 \param val value to set elements to 129 130 */ 131 void lvec_set(lvec_t *s, smpl_t val); 132 133 /** set all elements to zero 134 135 \param s vector to modify 136 137 */ 138 void lvec_zeros(lvec_t *s); 139 140 /** set all elements to ones 141 142 \param s vector to modify 143 144 */ 145 void lvec_ones(lvec_t *s); 146 125 147 #ifdef __cplusplus 126 148 }
Note: See TracChangeset
for help on using the changeset viewer.