shithub: aubio

Download patch

ref: aa033c2cd6114c7b826a86f351ad370b13a19131
parent: a7e766b2966c41523fae51bd1038b11506e92823
author: Paul Brossier <piem@piem.org>
date: Sun Dec 15 13:21:58 EST 2013

src/vecutils.*: update for history

--- a/src/vecutils.c
+++ b/src/vecutils.c
@@ -16,7 +16,8 @@
 
 #define AUBIO_OP_C_AND_F(OPNAME, OP) \
   AUBIO_OP(OPNAME, OP, fvec, data) \
-  AUBIO_OP(OPNAME, OP, cvec, norm)
+  AUBIO_OP(norm ## _ ## OPNAME, OP, cvec, norm) \
+  AUBIO_OP(phas ## _ ## OPNAME, OP, cvec, phas)
 
 AUBIO_OP_C_AND_F(exp, EXP)
 AUBIO_OP_C_AND_F(cos, COS)
--- a/src/vecutils.h
+++ b/src/vecutils.h
@@ -114,7 +114,7 @@
   \param s vector to modify
 
 */
-void cvec_exp (cvec_t *s);
+void cvec_norm_exp (cvec_t *s);
 
 /** compute \f$cos(x)\f$ of each vector norm elements
 
@@ -121,7 +121,7 @@
   \param s vector to modify
 
 */
-void cvec_cos (cvec_t *s);
+void cvec_norm_cos (cvec_t *s);
 
 /** compute \f$sin(x)\f$ of each vector norm elements
 
@@ -128,7 +128,7 @@
   \param s vector to modify
 
 */
-void cvec_sin (cvec_t *s);
+void cvec_norm_sin (cvec_t *s);
 
 /** compute the \f$abs(x)\f$ of each vector norm elements
 
@@ -135,7 +135,7 @@
   \param s vector to modify
 
 */
-void cvec_abs (cvec_t *s);
+void cvec_norm_abs (cvec_t *s);
 
 /** compute the \f$sqrt(x)\f$ of each vector norm elements
 
@@ -142,7 +142,7 @@
   \param s vector to modify
 
 */
-void cvec_sqrt (cvec_t *s);
+void cvec_norm_sqrt (cvec_t *s);
 
 /** compute the \f$log10(x)\f$ of each vector norm elements
 
@@ -149,7 +149,7 @@
   \param s vector to modify
 
 */
-void cvec_log10 (cvec_t *s);
+void cvec_norm_log10 (cvec_t *s);
 
 /** compute the \f$log(x)\f$ of each vector norm elements
 
@@ -156,7 +156,7 @@
   \param s vector to modify
 
 */
-void cvec_log (cvec_t *s);
+void cvec_norm_log (cvec_t *s);
 
 /** compute the \f$floor(x)\f$ of each vector norm elements
 
@@ -163,7 +163,7 @@
   \param s vector to modify
 
 */
-void cvec_floor (cvec_t *s);
+void cvec_norm_floor (cvec_t *s);
 
 /** compute the \f$ceil(x)\f$ of each vector norm elements
 
@@ -170,7 +170,7 @@
   \param s vector to modify
 
 */
-void cvec_ceil (cvec_t *s);
+void cvec_norm_ceil (cvec_t *s);
 
 /** compute the \f$round(x)\f$ of each vector norm elements
 
@@ -177,7 +177,7 @@
   \param s vector to modify
 
 */
-void cvec_round (cvec_t *s);
+void cvec_norm_round (cvec_t *s);
 
 /** raise each vector norm elements to the power pow
 
@@ -185,7 +185,85 @@
   \param pow power to raise to
 
 */
-void cvec_pow (cvec_t *s, smpl_t pow);
+void cvec_norm_pow (cvec_t *s, smpl_t pow);
+
+/** compute \f$e^x\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_exp (cvec_t *s);
+
+/** compute \f$cos(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_cos (cvec_t *s);
+
+/** compute \f$sin(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_sin (cvec_t *s);
+
+/** compute the \f$abs(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_abs (cvec_t *s);
+
+/** compute the \f$sqrt(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_sqrt (cvec_t *s);
+
+/** compute the \f$log10(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_log10 (cvec_t *s);
+
+/** compute the \f$log(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_log (cvec_t *s);
+
+/** compute the \f$floor(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_floor (cvec_t *s);
+
+/** compute the \f$ceil(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_ceil (cvec_t *s);
+
+/** compute the \f$round(x)\f$ of each vector phas elements
+
+  \param s vector to modify
+
+*/
+void cvec_phas_round (cvec_t *s);
+
+/** raise each vector phas elements to the power pow
+
+  \param s vector to modify
+  \param pow power to raise to
+
+*/
+void cvec_phas_pow (cvec_t *s, smpl_t pow);
 
 #ifdef __cplusplus
 }
--