- Timestamp:
- 08/18/08 14:28:08 (16 years ago)
- Location:
- tests
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
tests/CMakeLists.txt
r134 r141 32 32 add_executable (blas_test blas_test.cpp) 33 33 target_link_libraries (blas_test itpp) 34 35 add_executable (struct_test struct_test.cpp)36 target_link_libraries (struct_test itpp)37 38 add_executable (linefit2_c linefit2_c.cpp)39 target_link_libraries (linefit2_c ${BdmLibs})40 34 41 35 add_executable (test0 test0.cpp) -
tests/blas_test.cpp
r126 r141 59 59 60 60 tt.tic(); 61 for ( int i =0;i<10;i++ ) {C = matmul ( A,B );}61 for ( int ii=0;ii<10;ii++ ) {C = matmul ( A,B );} 62 62 exec_times ( i ) =tt.toc(); 63 63 64 64 tt.tic(); 65 for ( int i =0;i<10;i++ ) {C = A*B;}65 for ( int ii=0;ii<10;ii++ ) {C = A*B;} 66 66 exec_times_b ( i ) =tt.toc(); 67 67 68 68 C = zeros(n,n); 69 69 tt.tic(); 70 for ( int i =0;i<10;i++ ) { matmul2(n,A._data(),B._data(),C._data());}70 for ( int ii=0;ii<10;ii++ ) { matmul2(n,A._data(),B._data(),C._data());} 71 71 exec_times_c ( i ) =tt.toc(); 72 72 }