Changeset 39a7b26 for src/cvec.h


Ignore:
Timestamp:
Nov 26, 2013, 8:09:06 PM (6 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:
88fee8f
Parents:
923a7a8
Message:

src/cvec.h: improve cvec_t api

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/cvec.h

    r923a7a8 r39a7b26  
    159159void cvec_print(cvec_t *s);
    160160
    161 /** set all elements to a given value
     161/** make a copy of a vector
     162
     163  \param s source vector
     164  \param t vector to copy to
     165
     166*/
     167void cvec_copy(cvec_t *s, cvec_t *t);
     168
     169/** set all norm elements to a given value
    162170
    163171  \param s vector to modify
     
    165173
    166174*/
    167 void cvec_set(cvec_t *s, smpl_t val);
    168 
    169 /** set all elements to zero
     175void cvec_set_all_norm(cvec_t *s, smpl_t val);
     176
     177/** set all norm elements to zero
     178
     179  \param s vector to modify
     180
     181*/
     182void cvec_zeros_norm(cvec_t *s);
     183
     184/** set all norm elements to one
     185
     186  \param s vector to modify
     187
     188*/
     189void cvec_ones_norm(cvec_t *s);
     190
     191/** set all phase elements to a given value
     192
     193  \param s vector to modify
     194  \param val value to set elements to
     195
     196*/
     197void cvec_set_all_phas(cvec_t *s, smpl_t val);
     198
     199/** set all phase elements to zero
     200
     201  \param s vector to modify
     202
     203*/
     204void cvec_zeros_phas(cvec_t *s);
     205
     206/** set all phase elements to one
     207
     208  \param s vector to modify
     209
     210*/
     211void cvec_ones_phas(cvec_t *s);
     212
     213/** set all norm and phas elements to zero
    170214
    171215  \param s vector to modify
     
    173217*/
    174218void cvec_zeros(cvec_t *s);
    175 
    176 /** set all elements to ones
    177 
    178   \param s vector to modify
    179 
    180 */
    181 void cvec_ones(cvec_t *s);
    182219
    183220#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.