Changeset 633400d for src/mathutils.h


Ignore:
Timestamp:
Dec 5, 2018, 10:34:39 PM (5 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
Children:
283a619a
Parents:
5b46bc3 (diff), f19db54 (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.
Message:

Merge branch 'master' into feature/pitchshift

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mathutils.h

    r5b46bc3 r633400d  
    118118void fvec_ishift (fvec_t * v);
    119119
     120/** push a new element to the end of a vector, erasing the first element and
     121 * sliding all others
     122
     123  \param in vector to push to
     124  \param new_elem new_element to add at the end of the vector
     125
     126  In numpy words, this is equivalent to: in = np.concatenate([in, [new_elem]])[1:]
     127
     128*/
     129void fvec_push(fvec_t *in, smpl_t new_elem);
     130
    120131/** compute the sum of all elements of a vector
    121132
     
    182193*/
    183194void fvec_add (fvec_t * v, smpl_t c);
     195
     196/** multiply each elements of a vector by a scalar
     197
     198  \param v vector to add constant to
     199  \param s constant to scale v with
     200
     201*/
     202void fvec_mul (fvec_t * v, smpl_t s);
    184203
    185204/** remove the minimum value of the vector to each elements
     
    302321uint_t aubio_next_power_of_two(uint_t a);
    303322
     323/** return the log2 factor of the given power of 2 value a */
     324uint_t aubio_power_of_two_order(uint_t a);
     325
    304326/** compute normalised autocorrelation function
    305327
Note: See TracChangeset for help on using the changeset viewer.