Changeset 39a7b26 for tests/src/test-cvec.c
- Timestamp:
- Nov 26, 2013, 8:09:06 PM (11 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 88fee8f
- Parents:
- 923a7a8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/src/test-cvec.c
r923a7a8 r39a7b26 20 20 21 21 // set all vector elements to `0` 22 cvec_zeros (complex_vector);22 cvec_zeros_norm(complex_vector); 23 23 for ( i = 0; i < complex_vector->length; i++ ) { 24 24 assert( complex_vector->norm[i] == 0. ); … … 28 28 29 29 // set all vector elements to `1` 30 cvec_ones (complex_vector);30 cvec_ones_norm(complex_vector); 31 31 for ( i = 0; i < complex_vector->length; i++ ) { 32 32 assert( complex_vector->norm[i] == 1. ); … … 34 34 } 35 35 cvec_print(complex_vector); 36 37 cvec_zeros(complex_vector); 38 cvec_zeros_phas(complex_vector); 39 cvec_zeros_norm(complex_vector); 40 cvec_ones_norm(complex_vector); 41 cvec_ones_phas(complex_vector); 42 cvec_copy(complex_vector, complex_vector); 43 36 44 // destroy it 37 45 del_cvec(complex_vector);
Note: See TracChangeset
for help on using the changeset viewer.