*implement LU solver (solves any rectangular system)

*in test/CMakeLists : modify EI_ADD_TEST so that 2nd argument is
additional compiler flags. used to add -O2 to test_product_large so it
doesn't take forever.
This commit is contained in:
Benoit Jacob
2008-08-09 15:23:54 +00:00
parent a41f2b4216
commit 681e944670
2 changed files with 41 additions and 44 deletions

View File

@@ -38,11 +38,11 @@ MACRO(EI_ADD_TEST testname)
SET(targetname test_${testname})
IF(${ARGC} EQUAL 2)
SET(filename ${ARGV1})
ELSE(${ARGC} EQUAL 2)
# IF(${ARGC} EQUAL 2)
# SET(filename ${ARGV1})
# ELSE(${ARGC} EQUAL 2)
SET(filename ${testname}.cpp)
ENDIF(${ARGC} EQUAL 2)
# ENDIF(${ARGC} EQUAL 2)
ADD_EXECUTABLE(${targetname} ${filename})
IF(NOT EIGEN_NO_ASSERTION_CHECKING)
@@ -59,6 +59,10 @@ MACRO(EI_ADD_TEST testname)
ENDIF(NOT EIGEN_NO_ASSERTION_CHECKING)
IF(${ARGC} GREATER 1)
EI_ADD_TARGET_PROPERTY(${targetname} COMPILE_FLAGS "${ARGV1}")
ENDIF(${ARGC} GREATER 1)
EI_ADD_TARGET_PROPERTY(${targetname} COMPILE_FLAGS "-DEIGEN_TEST_FUNC=${testname}")
IF(TEST_LIB)
@@ -86,7 +90,7 @@ EI_ADD_TEST(basicstuff)
EI_ADD_TEST(linearstructure)
EI_ADD_TEST(cwiseop)
EI_ADD_TEST(product_small)
EI_ADD_TEST(product_large)
EI_ADD_TEST(product_large "-O2")
EI_ADD_TEST(adjoint)
EI_ADD_TEST(submatrices)
EI_ADD_TEST(miscmatrices)