}
}
+void cvec_set(cvec_t *s, smpl_t val) {
+ uint_t i,j;
+ for (i=0; i< s->channels; i++) {
+ for (j=0; j< s->length; j++) {
+ s->norm[i][j] = val;
+ }
+ }
+}
+
+void cvec_zeros(cvec_t *s) {
+ cvec_set(s, 0.);
+}
+
+void cvec_ones(cvec_t *s) {
+ cvec_set(s, 1.);
+}
+
*/
void cvec_print(cvec_t *s);
+/** set all elements to a given value
+
+ \param s vector to modify
+ \param val value to set elements to
+
+*/
+void cvec_set(cvec_t *s, smpl_t val);
+
+/** set all elements to zero
+
+ \param s vector to modify
+
+*/
+void cvec_zeros(cvec_t *s);
+
+/** set all elements to ones
+
+ \param s vector to modify
+
+*/
+void cvec_ones(cvec_t *s);
+
#ifdef __cplusplus
}
#endif