Build the sharp dependency
This commit is contained in:
parent
72f658c7cf
commit
707a25bda3
3 changed files with 20 additions and 6 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue