Changeset 1120f86 for src/fmat.h
- Timestamp:
- Apr 21, 2016, 6:21:43 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/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- ae5d58a
- Parents:
- c4d251c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/fmat.h
rc4d251c r1120f86 66 66 67 67 */ 68 smpl_t fmat_get_sample( fmat_t *s, uint_t channel, uint_t position);68 smpl_t fmat_get_sample(const fmat_t *s, uint_t channel, uint_t position); 69 69 70 70 /** write sample value in a buffer … … 85 85 86 86 */ 87 void fmat_get_channel ( fmat_t *s, uint_t channel, fvec_t *output);87 void fmat_get_channel (const fmat_t *s, uint_t channel, fvec_t *output); 88 88 89 89 /** get vector buffer from an fmat data … … 93 93 94 94 */ 95 smpl_t * fmat_get_channel_data ( fmat_t *s, uint_t channel);95 smpl_t * fmat_get_channel_data (const fmat_t *s, uint_t channel); 96 96 97 97 /** read data from a buffer … … 100 100 101 101 */ 102 smpl_t ** fmat_get_data( fmat_t *s);102 smpl_t ** fmat_get_data(const fmat_t *s); 103 103 104 104 /** print out fmat data … … 107 107 108 108 */ 109 void fmat_print( fmat_t *s);109 void fmat_print(const fmat_t *s); 110 110 111 111 /** set all elements to a given value … … 147 147 148 148 */ 149 void fmat_weight(fmat_t *s, fmat_t *weight);149 void fmat_weight(fmat_t *s, const fmat_t *weight); 150 150 151 151 /** make a copy of a matrix … … 155 155 156 156 */ 157 void fmat_copy( fmat_t *s, fmat_t *t);157 void fmat_copy(const fmat_t *s, fmat_t *t); 158 158 159 159 /* compute the product of a matrix by a vector … … 164 164 165 165 */ 166 void fmat_vecmul( fmat_t *s,fvec_t *scale, fvec_t *output);166 void fmat_vecmul(const fmat_t *s, const fvec_t *scale, fvec_t *output); 167 167 168 168 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.