}
}
+void lvec_set(lvec_t *s, smpl_t val) {
+ uint_t i,j;
+ for (i=0; i< s->channels; i++) {
+ for (j=0; j< s->length; j++) {
+ s->data[i][j] = val;
+ }
+ }
+}
+
+void lvec_zeros(lvec_t *s) {
+ lvec_set(s, 0.);
+}
+
+void lvec_ones(lvec_t *s) {
+ lvec_set(s, 1.);
+}
+
*/
void lvec_print(lvec_t *s);
+/** set all elements to a given value
+
+ \param s vector to modify
+ \param val value to set elements to
+
+*/
+void lvec_set(lvec_t *s, smpl_t val);
+
+/** set all elements to zero
+
+ \param s vector to modify
+
+*/
+void lvec_zeros(lvec_t *s);
+
+/** set all elements to ones
+
+ \param s vector to modify
+
+*/
+void lvec_ones(lvec_t *s);
+
#ifdef __cplusplus
}
#endif