Changeset f264b17 for src/fvec.h
- Timestamp:
- Jun 22, 2016, 1:00:10 PM (9 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:
- 4b9443c4
- Parents:
- 60fc05b (diff), 6769586 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fvec.h
r60fc05b rf264b17 19 19 */ 20 20 21 #ifndef _AUBIO__FVEC_H22 #define _AUBIO__FVEC_H21 #ifndef AUBIO_FVEC_H 22 #define AUBIO_FVEC_H 23 23 24 24 #ifdef __cplusplus … … 90 90 91 91 */ 92 smpl_t fvec_get_sample( fvec_t *s, uint_t position);92 smpl_t fvec_get_sample(const fvec_t *s, uint_t position); 93 93 94 94 /** write sample value in a buffer … … 106 106 107 107 */ 108 smpl_t * fvec_get_data( fvec_t *s);108 smpl_t * fvec_get_data(const fvec_t *s); 109 109 110 110 /** print out fvec data … … 113 113 114 114 */ 115 void fvec_print( fvec_t *s);115 void fvec_print(const fvec_t *s); 116 116 117 117 /** set all elements to a given value … … 153 153 154 154 */ 155 void fvec_weight(fvec_t *s, fvec_t *weight);155 void fvec_weight(fvec_t *s, const fvec_t *weight); 156 156 157 157 /** make a copy of a vector … … 161 161 162 162 */ 163 void fvec_copy(fvec_t *s, fvec_t *t); 163 void fvec_copy(const fvec_t *s, fvec_t *t); 164 165 /** make a copy of a vector, applying weights to each element 166 167 \param in input vector 168 \param weight weights vector 169 \param out output vector 170 171 */ 172 void fvec_weighted_copy(const fvec_t *in, const fvec_t *weight, fvec_t *out); 164 173 165 174 #ifdef __cplusplus … … 167 176 #endif 168 177 169 #endif /* _AUBIO__FVEC_H */178 #endif /* AUBIO_FVEC_H */
Note: See TracChangeset
for help on using the changeset viewer.