Ticket #54583: patch-splinter-eigen3.diff

File patch-splinter-eigen3.diff, 1.4 KB (added by repagh (Rene van Paassen), 7 years ago)

diff file for using eigen3 port

  • src/bsplinebasis.cpp

    old new SparseMatrix BSplineBasis::evalBasisJaco 
    119119
    120120        // Fill out column
    121121        for (int k = 0; k < Ji.outerSize(); ++k)
    122         for (SparseMatrix::InnerIterator it(Ji,k); it; ++it)
     122        for (SparseVector::InnerIterator it(Ji,k); it; ++it)
    123123        {
    124124            if (it.value() != 0)
    125125                J.insert(it.row(),i) = it.value();
  • CMakeLists.txt

    old new elseif(INTEL) 
    119119endif()
    120120
    121121if(NOT EIGEN_DIRECTORY)
    122         set(EIGEN_DIRECTORY ${DEFAULT_EIGEN_DIRECTORY})
     122    set(EIGEN_DIRECTORY ${DEFAULT_EIGEN_DIRECTORY})
     123    set(EIGEN_INSTALL_DIRS
     124      ${DEFAULT_EIGEN_DIRECTORY}/Eigen
     125      ${DEFAULT_EIGEN_DIRECTORY}/unsupported)
    123126endif()
    124127# CACHE STRING = Display the option with help text in CMakeCache.txt
    125128set(EIGEN_DIRECTORY ${EIGEN_DIRECTORY} CACHE STRING "Directory where the Eigen library is located.")
    install( 
    280283install(
    281284    DIRECTORY
    282285    ${CMAKE_CURRENT_SOURCE_DIR}/include/
    283     ${EIGEN_DIRECTORY}/Eigen
    284     ${EIGEN_DIRECTORY}/unsupported
     286    ${EIGEN_INSTALL_DIRS}
    285287    DESTINATION ${HEADER_INSTALL_DIRECTORY}/SPLINTER
    286288)
    287289# Install the shared library file