pick templatization from mpreal branch, but do not use mpfrc++ in master
This commit is contained in:
parent
384c2c31b3
commit
26d2857733
2 changed files with 1 additions and 14 deletions
|
|
@ -9,12 +9,8 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
|
|||
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
|
||||
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
|
||||
|
||||
INCLUDE_DIRECTORIES("~/apps/mpfrc++/")
|
||||
LINK_DIRECTORIES("~/apps/mpfrc++/")
|
||||
LINK_DIRECTORIES("/usr/lib/")
|
||||
|
||||
ADD_DEFINITIONS( -Wall -W -Wextra )
|
||||
|
||||
ADD_EXECUTABLE(test test.cpp)
|
||||
TARGET_LINK_LIBRARIES(test ${Boost_LIBRARIES} gmp mpfr mpreal)
|
||||
TARGET_LINK_LIBRARIES(test ${Boost_LIBRARIES})
|
||||
|
||||
|
|
|
|||
9
test.cpp
9
test.cpp
|
|
@ -28,9 +28,6 @@ Authors:
|
|||
#include <map>
|
||||
#include <vector>
|
||||
|
||||
#include <mpreal.h>
|
||||
using namespace mpfr;
|
||||
|
||||
#include "cholesky.h"
|
||||
|
||||
|
||||
|
|
@ -241,7 +238,6 @@ int main(int argc, char** argv)
|
|||
std::clog << "Legend:" << std::endl;
|
||||
std::clog << "\tAlgo: (failures/runs)\tAverage error" << std::endl;
|
||||
|
||||
/*
|
||||
std::cout << std::endl << "FLOAT" << std::endl;
|
||||
test<float>(M,N,F,R,seed);
|
||||
|
||||
|
|
@ -250,10 +246,5 @@ int main(int argc, char** argv)
|
|||
|
||||
std::cout << std::endl << "LONG DOUBLE" << std::endl;
|
||||
test<long double>(M,N,F,R,seed);
|
||||
*/
|
||||
|
||||
std::cout << std::endl << "MPREAL 128" << std::endl;
|
||||
mpreal::set_default_prec(128);
|
||||
test<mpreal>(M,N,F,R,seed);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue