Build the sharp dependency

This commit is contained in:
Guilhem Lavaux 2012-11-10 11:10:04 -05:00
parent 72f658c7cf
commit 707a25bda3
3 changed files with 20 additions and 6 deletions

View file

@ -49,7 +49,7 @@ if (FFTW3_FOUND AND EIGEN3_FOUND)
target_link_libraries(test_fft_calls ${tolink} ${FFTW3_LIBRARIES})
endif (FFTW3_FOUND AND EIGEN3_FOUND)
if (SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
add_executable(test_sharp_calls test_sharp_calls.cpp)
target_link_libraries(test_sharp_calls ${tolink} ${SHARP_LIBRARY})
endif (SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
#if (SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)
# add_executable(test_sharp_calls test_sharp_calls.cpp)
# target_link_libraries(test_sharp_calls ${tolink} ${SHARP_LIBRARY})
#endif (SHARP_LIBRARY AND SHARP_INCLUDE_PATH AND EIGEN3_FOUND)

View file

@ -13,5 +13,8 @@ int main()
dft.analysis();
cout << "Map dot-product = " << dft.realSpace().dot_product(dft.realSpace()) << endl;
cout << "Fourier dot-product = " << dft.fourierSpace().dot_product(dft.fourierSpace()).real()*volume << endl;
dft.synthesis();
cout << "Resynthesis dot-product = " << dft.realSpace().dot_product(dft.realSpace()) << endl;
return 0;
}