Changeset 155cc10 for src/fvec.h
- Timestamp:
- Mar 10, 2017, 2:26:32 PM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/applefworks, fix/ffmpeg5, master, sampler
- Children:
- ee8a57c
- Parents:
- 00d0275 (diff), 67b6618 (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
r00d0275 r155cc10 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 164 165 165 /** make a copy of a vector, applying weights to each element … … 170 170 171 171 */ 172 void fvec_weighted_copy( fvec_t *in,fvec_t *weight, fvec_t *out);172 void fvec_weighted_copy(const fvec_t *in, const fvec_t *weight, fvec_t *out); 173 173 174 174 #ifdef __cplusplus … … 176 176 #endif 177 177 178 #endif /* _AUBIO__FVEC_H */178 #endif /* AUBIO_FVEC_H */
Note: See TracChangeset
for help on using the changeset viewer.