Changeset 1120f86 for src/fmat.h


Ignore:
Timestamp:
Apr 21, 2016, 6:21:43 PM (4 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
ae5d58a
Parents:
c4d251c
Message:

src/{fvec,cvec,fmat,lvec}.{c,h}: added const qualifiers to unmodified pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fmat.h

    rc4d251c r1120f86  
    6666
    6767*/
    68 smpl_t fmat_get_sample(fmat_t *s, uint_t channel, uint_t position);
     68smpl_t fmat_get_sample(const fmat_t *s, uint_t channel, uint_t position);
    6969
    7070/** write sample value in a buffer
     
    8585
    8686*/
    87 void fmat_get_channel (fmat_t *s, uint_t channel, fvec_t *output);
     87void fmat_get_channel (const fmat_t *s, uint_t channel, fvec_t *output);
    8888
    8989/** get vector buffer from an fmat data
     
    9393
    9494*/
    95 smpl_t * fmat_get_channel_data (fmat_t *s, uint_t channel);
     95smpl_t * fmat_get_channel_data (const fmat_t *s, uint_t channel);
    9696
    9797/** read data from a buffer
     
    100100
    101101*/
    102 smpl_t ** fmat_get_data(fmat_t *s);
     102smpl_t ** fmat_get_data(const fmat_t *s);
    103103
    104104/** print out fmat data
     
    107107
    108108*/
    109 void fmat_print(fmat_t *s);
     109void fmat_print(const fmat_t *s);
    110110
    111111/** set all elements to a given value
     
    147147
    148148*/
    149 void fmat_weight(fmat_t *s, fmat_t *weight);
     149void fmat_weight(fmat_t *s, const fmat_t *weight);
    150150
    151151/** make a copy of a matrix
     
    155155
    156156*/
    157 void fmat_copy(fmat_t *s, fmat_t *t);
     157void fmat_copy(const fmat_t *s, fmat_t *t);
    158158
    159159/* compute the product of a matrix by a vector
     
    164164
    165165*/
    166 void fmat_vecmul(fmat_t *s, fvec_t *scale, fvec_t *output);
     166void fmat_vecmul(const fmat_t *s, const fvec_t *scale, fvec_t *output);
    167167
    168168#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.