Changeset 3b2d32c for src/fvec.h


Ignore:
Timestamp:
Sep 12, 2009, 2:28:00 PM (10 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:
6f1727f
Parents:
ae4d5de
Message:

src/fvec.{c,h}: add fvec_set _zeros _ones _rev _weight and _copy utilities functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/fvec.h

    rae4d5de r3b2d32c  
    121121void fvec_print(fvec_t *s);
    122122
     123/** set all elements to a given value
     124
     125  \param s vector to modify
     126  \param val value to set elements to
     127
     128*/
     129void fvec_set(fvec_t *s, smpl_t val);
     130
     131/** set all elements to zero
     132
     133  \param s vector to modify
     134
     135*/
     136void fvec_zeros(fvec_t *s);
     137
     138/** set all elements to ones
     139
     140  \param s vector to modify
     141
     142*/
     143void fvec_ones(fvec_t *s);
     144
     145/** revert order of vector elements
     146
     147  \param s vector to revert
     148
     149*/
     150void fvec_rev(fvec_t *s);
     151
     152/** apply weight to vector
     153
     154  If the weight vector is longer than s, only the first elements are used. If
     155  the weight vector is shorter than s, the last elements of s are not weighted.
     156
     157  \param s vector to weight
     158  \param weight weighting coefficients
     159
     160*/
     161void fvec_weight(fvec_t *s, fvec_t *weight);
     162
     163/** make a copy of a vector
     164
     165  \param s source vector
     166  \param t vector to copy to
     167
     168*/
     169void fvec_copy(fvec_t *s, fvec_t *t);
     170
    123171#ifdef __cplusplus
    124172}
Note: See TracChangeset for help on using the changeset viewer.