Eigen 入門 1 - Eigen簡介

簡介

Eigen是一個開源的矩陣和向量的計算庫。其主要提供了

  • 密集矩陣定義和計算
  • 稀疏矩陣定義及計算
  • 幾何意義

安裝

Eigen其實並不用安裝,應爲其直接提供了C++的源碼,而且是最有.h頭文件,所有的聲明和定義都在頭文件內。

但這裏說的安裝,包括了源碼拷貝到對應的系統位置,還有相關的一些設定。

Mac上簡單安裝

源碼

如果你熟悉make操作或CMake,eigen並不需要安裝,簡單地下載並解壓得到源碼即可。實際上,在下載的Eigen子目錄下的頭文件是你唯一需要的,它們對所有的平臺都是一致的,包括Windows,Linux,Mac……。然後你可以在你的c/C++代碼中#include相關的頭文件,然後編譯運行。

mac 工具安裝

在mac上可以使用Brew進行簡單安裝

$ brew info eigen
eigen: stable 3.3.7 (bottled), HEAD
C++ template library for linear algebra
https://eigen.tuxfamily.org/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/eigen.rb
==> Dependencies
Build: cmake ✘
==> Options
--HEAD
	Install HEAD version
$ 
$ $ brew install eigen --verbose
Updating Homebrew...

==> Downloading https://homebrew.bintray.com/bottles/eigen-3.3.7.high_sierra.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/79/79c52d57394cf485eb324effab69279e4f3beb63cbacfa600ae0a678d852a827?__gda__=exp=1581844210~hmac=3a6b883979c10748ffa852494407055aaca620e8b30e0c97d7c7b8bd6851236d&response-content-disposition=attachment%3Bfilename%3D%22eigen-3.3.7.high_sierra.bottle.tar.gz%22&response-content-type=application%2Fgzip&requestInfo=U2FsdGVkX1-2mVVKrexc5neg1TrVW75s7zacghZ5TLvPZbLaz7dtUFwNXHsk8XEfLSru-n2zcqrHOlOeEegdJHNuwXt_XEfVbXexPTH51i_jVGnxk9JGEU5asLAv0floxQMpeumtk_R5vqAU-X55Aw&response-X-Checksum-Sha1=02b91fb73eecd067d7830bb7f394a02349893b8a&response-X-Checksum-Sha2=79c52d57394cf485eb324effab69279e4f3beb63cbacfa600ae0a678d852a827
/usr/bin/curl -q --globoff --show-error --user-agent Homebrew/2.2.5\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 10.13.6\)\ curl/7.54.0 --fail --location --remote-time --continue-at 0 --output /Users/david/Library/Caches/Homebrew/downloads/6f2e7171c37395b3cceb4bc7a13d60781e8dc55a1f4936f8ed4500d585bcef8e--eigen-3.3.7.high_sierra.bottle.tar.gz.incomplete https://akamai.bintray.com/79/79c52d57394cf485eb324effab69279e4f3beb63cbacfa600ae0a678d852a827\?__gda__=exp=1581844210\~hmac=3a6b883979c10748ffa852494407055aaca620e8b30e0c97d7c7b8bd6851236d\&response-content-disposition=attachment\%3Bfilename\%3D\%22eigen-3.3.7.high_sierra.bottle.tar.gz\%22\&response-content-type=application\%2Fgzip\&requestInfo=U2FsdGVkX1-2mVVKrexc5neg1TrVW75s7zacghZ5TLvPZbLaz7dtUFwNXHsk8XEfLSru-n2zcqrHOlOeEegdJHNuwXt_XEfVbXexPTH51i_jVGnxk9JGEU5asLAv0floxQMpeumtk_R5vqAU-X55Aw\&response-X-Checksum-Sha1=02b91fb73eecd067d7830bb7f394a02349893b8a\&response-X-Checksum-Sha2=79c52d57394cf485eb324effab69279e4f3beb63cbacfa600ae0a678d852a827
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1121k  100 1121k    0     0  31338      0  0:00:36  0:00:36 --:--:-- 22652
==> Verifying 6f2e7171c37395b3cceb4bc7a13d60781e8dc55a1f4936f8ed4500d585bcef8e--eigen-3.3.7.high_sierra.bottle.tar.gz checksum
==> Pouring eigen-3.3.7.high_sierra.bottle.tar.gz
tar xof /Users/david/Library/Caches/Homebrew/downloads/6f2e7171c37395b3cceb4bc7a13d60781e8dc55a1f4936f8ed4500d585bcef8e--eigen-3.3.7.high_sierra.bottle.tar.gz -C /var/folders/b3/gb4zt5zs0y58mk5sq84grj4m0000gn/T/d20200216-2146-1nkw3yi
cp -pR /var/folders/b3/gb4zt5zs0y58mk5sq84grj4m0000gn/T/d20200216-2146-1nkw3yi/eigen/. /usr/local/Cellar/eigen
chmod -Rf +w /var/folders/b3/gb4zt5zs0y58mk5sq84grj4m0000gn/T/d20200216-2146-1nkw3yi
==> Finishing up
ln -s ../Cellar/eigen/3.3.7/include/eigen3 eigen3
rm /usr/local/share/cmake
mkdir -p /usr/local/share/cmake/Help
mkdir -p /usr/local/share/cmake/Help/command
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/FIND_XXX.txt FIND_XXX.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/FIND_XXX_ORDER.txt FIND_XXX_ORDER.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/FIND_XXX_ROOT.txt FIND_XXX_ROOT.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/LINK_OPTIONS_LINKER.txt LINK_OPTIONS_LINKER.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/OPTIONS_SHELL.txt OPTIONS_SHELL.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_compile_definitions.rst add_compile_definitions.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_compile_options.rst add_compile_options.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_custom_command.rst add_custom_command.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_custom_target.rst add_custom_target.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_definitions.rst add_definitions.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_dependencies.rst add_dependencies.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_executable.rst add_executable.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_library.rst add_library.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_link_options.rst add_link_options.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_subdirectory.rst add_subdirectory.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/add_test.rst add_test.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/aux_source_directory.rst aux_source_directory.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/break.rst break.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/build_command.rst build_command.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/build_name.rst build_name.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/cmake_host_system_information.rst cmake_host_system_information.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/cmake_minimum_required.rst cmake_minimum_required.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/cmake_parse_arguments.rst cmake_parse_arguments.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/cmake_policy.rst cmake_policy.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/configure_file.rst configure_file.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/continue.rst continue.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/create_test_sourcelist.rst create_test_sourcelist.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_build.rst ctest_build.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_configure.rst ctest_configure.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_coverage.rst ctest_coverage.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_empty_binary_directory.rst ctest_empty_binary_directory.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_memcheck.rst ctest_memcheck.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_read_custom_files.rst ctest_read_custom_files.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_run_script.rst ctest_run_script.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_sleep.rst ctest_sleep.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_start.rst ctest_start.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_submit.rst ctest_submit.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_test.rst ctest_test.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_update.rst ctest_update.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/ctest_upload.rst ctest_upload.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/define_property.rst define_property.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/else.rst else.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/elseif.rst elseif.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/enable_language.rst enable_language.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/enable_testing.rst enable_testing.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/endforeach.rst endforeach.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/endfunction.rst endfunction.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/endif.rst endif.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/endmacro.rst endmacro.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/endwhile.rst endwhile.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/exec_program.rst exec_program.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/execute_process.rst execute_process.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/export.rst export.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/export_library_dependencies.rst export_library_dependencies.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/file.rst file.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/find_file.rst find_file.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/find_library.rst find_library.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/find_package.rst find_package.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/find_path.rst find_path.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/find_program.rst find_program.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/fltk_wrap_ui.rst fltk_wrap_ui.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/foreach.rst foreach.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/function.rst function.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/get_cmake_property.rst get_cmake_property.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/get_directory_property.rst get_directory_property.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/get_filename_component.rst get_filename_component.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/get_property.rst get_property.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/get_source_file_property.rst get_source_file_property.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/get_target_property.rst get_target_property.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/get_test_property.rst get_test_property.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/if.rst if.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/include.rst include.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/include_directories.rst include_directories.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/include_external_msproject.rst include_external_msproject.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/include_guard.rst include_guard.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/include_regular_expression.rst include_regular_expression.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/install.rst install.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/install_files.rst install_files.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/install_programs.rst install_programs.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/install_targets.rst install_targets.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/link_directories.rst link_directories.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/link_libraries.rst link_libraries.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/list.rst list.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/load_cache.rst load_cache.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/load_command.rst load_command.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/macro.rst macro.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/make_directory.rst make_directory.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/mark_as_advanced.rst mark_as_advanced.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/math.rst math.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/message.rst message.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/option.rst option.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/output_required_files.rst output_required_files.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/project.rst project.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/qt_wrap_cpp.rst qt_wrap_cpp.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/qt_wrap_ui.rst qt_wrap_ui.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/remove.rst remove.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/remove_definitions.rst remove_definitions.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/return.rst return.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/separate_arguments.rst separate_arguments.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/set.rst set.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/set_directory_properties.rst set_directory_properties.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/set_property.rst set_property.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/set_source_files_properties.rst set_source_files_properties.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/set_target_properties.rst set_target_properties.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/set_tests_properties.rst set_tests_properties.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/site_name.rst site_name.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/source_group.rst source_group.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/string.rst string.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/subdir_depends.rst subdir_depends.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/subdirs.rst subdirs.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/target_compile_definitions.rst target_compile_definitions.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/target_compile_features.rst target_compile_features.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/target_compile_options.rst target_compile_options.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/target_include_directories.rst target_include_directories.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/target_link_directories.rst target_link_directories.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/target_link_libraries.rst target_link_libraries.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/target_link_options.rst target_link_options.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/target_sources.rst target_sources.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/try_compile.rst try_compile.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/try_run.rst try_run.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/unset.rst unset.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/use_mangled_mesa.rst use_mangled_mesa.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/utility_source.rst utility_source.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/variable_requires.rst variable_requires.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/variable_watch.rst variable_watch.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/while.rst while.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/command/write_file.rst write_file.rst
mkdir -p /usr/local/share/cmake/Help/cpack_gen
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/archive.rst archive.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/bundle.rst bundle.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/cygwin.rst cygwin.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/deb.rst deb.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/dmg.rst dmg.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/external.rst external.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/freebsd.rst freebsd.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/ifw.rst ifw.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/nsis.rst nsis.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/nuget.rst nuget.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/packagemaker.rst packagemaker.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/productbuild.rst productbuild.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/rpm.rst rpm.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/cpack_gen/wix.rst wix.rst
mkdir -p /usr/local/share/cmake/Help/envvar
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/ASM_DIALECT.rst ASM_DIALECT.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/ASM_DIALECTFLAGS.rst ASM_DIALECTFLAGS.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CC.rst CC.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CFLAGS.rst CFLAGS.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CMAKE_BUILD_PARALLEL_LEVEL.rst CMAKE_BUILD_PARALLEL_LEVEL.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CMAKE_CONFIG_TYPE.rst CMAKE_CONFIG_TYPE.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CMAKE_MSVCIDE_RUN_PATH.rst CMAKE_MSVCIDE_RUN_PATH.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CMAKE_OSX_ARCHITECTURES.rst CMAKE_OSX_ARCHITECTURES.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CSFLAGS.rst CSFLAGS.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CTEST_INTERACTIVE_DEBUG_MODE.rst CTEST_INTERACTIVE_DEBUG_MODE.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CTEST_OUTPUT_ON_FAILURE.rst CTEST_OUTPUT_ON_FAILURE.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CTEST_PARALLEL_LEVEL.rst CTEST_PARALLEL_LEVEL.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CTEST_PROGRESS_OUTPUT.rst CTEST_PROGRESS_OUTPUT.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CTEST_USE_LAUNCHERS_DEFAULT.rst CTEST_USE_LAUNCHERS_DEFAULT.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CUDACXX.rst CUDACXX.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CUDAFLAGS.rst CUDAFLAGS.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CUDAHOSTCXX.rst CUDAHOSTCXX.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CXX.rst CXX.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/CXXFLAGS.rst CXXFLAGS.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/DASHBOARD_TEST_FROM_CTEST.rst DASHBOARD_TEST_FROM_CTEST.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/DESTDIR.rst DESTDIR.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/FC.rst FC.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/FFLAGS.rst FFLAGS.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/LDFLAGS.rst LDFLAGS.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/MACOSX_DEPLOYMENT_TARGET.rst MACOSX_DEPLOYMENT_TARGET.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/PackageName_ROOT.rst PackageName_ROOT.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/RC.rst RC.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/envvar/RCFLAGS.rst RCFLAGS.rst
mkdir -p /usr/local/share/cmake/Help/generator
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Borland Makefiles.rst Borland Makefiles.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/CodeBlocks.rst CodeBlocks.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/CodeLite.rst CodeLite.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Eclipse CDT4.rst Eclipse CDT4.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Green Hills MULTI.rst Green Hills MULTI.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Kate.rst Kate.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/MSYS Makefiles.rst MSYS Makefiles.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/MinGW Makefiles.rst MinGW Makefiles.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/NMake Makefiles JOM.rst NMake Makefiles JOM.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/NMake Makefiles.rst NMake Makefiles.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Ninja.rst Ninja.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Sublime Text 2.rst Sublime Text 2.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Unix Makefiles.rst Unix Makefiles.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/VS_TOOLSET_HOST_ARCH.txt VS_TOOLSET_HOST_ARCH.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 10 2010.rst Visual Studio 10 2010.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 11 2012.rst Visual Studio 11 2012.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 12 2013.rst Visual Studio 12 2013.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 14 2015.rst Visual Studio 14 2015.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 15 2017.rst Visual Studio 15 2017.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 6.rst Visual Studio 6.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 7 .NET 2003.rst Visual Studio 7 .NET 2003.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 7.rst Visual Studio 7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 8 2005.rst Visual Studio 8 2005.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Visual Studio 9 2008.rst Visual Studio 9 2008.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Watcom WMake.rst Watcom WMake.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/generator/Xcode.rst Xcode.rst
mkdir -p /usr/local/share/cmake/Help/include
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/include/COMPILE_DEFINITIONS_DISCLAIMER.txt COMPILE_DEFINITIONS_DISCLAIMER.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/include/INTERFACE_INCLUDE_DIRECTORIES_WARNING.txt INTERFACE_INCLUDE_DIRECTORIES_WARNING.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/include/INTERFACE_LINK_LIBRARIES_WARNING.txt INTERFACE_LINK_LIBRARIES_WARNING.txt
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Help/index.rst index.rst
mkdir -p /usr/local/share/cmake/Help/manual
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/LINKS.txt LINKS.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/OPTIONS_BUILD.txt OPTIONS_BUILD.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/OPTIONS_HELP.txt OPTIONS_HELP.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/ccmake.1.rst ccmake.1.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-buildsystem.7.rst cmake-buildsystem.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-commands.7.rst cmake-commands.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-compile-features.7.rst cmake-compile-features.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-developer.7.rst cmake-developer.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-env-variables.7.rst cmake-env-variables.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-generator-expressions.7.rst cmake-generator-expressions.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-generators.7.rst cmake-generators.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-gui.1.rst cmake-gui.1.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-language.7.rst cmake-language.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-modules.7.rst cmake-modules.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-packages.7.rst cmake-packages.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-policies.7.rst cmake-policies.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-properties.7.rst cmake-properties.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-qt.7.rst cmake-qt.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-server.7.rst cmake-server.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-toolchains.7.rst cmake-toolchains.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake-variables.7.rst cmake-variables.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cmake.1.rst cmake.1.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cpack-generators.7.rst cpack-generators.7.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/cpack.1.rst cpack.1.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/manual/ctest.1.rst ctest.1.rst
mkdir -p /usr/local/share/cmake/Help/module
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/AddFileDependencies.rst AddFileDependencies.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/AndroidTestUtilities.rst AndroidTestUtilities.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/BundleUtilities.rst BundleUtilities.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeAddFortranSubdirectory.rst CMakeAddFortranSubdirectory.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeBackwardCompatibilityCXX.rst CMakeBackwardCompatibilityCXX.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeDependentOption.rst CMakeDependentOption.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeDetermineVSServicePack.rst CMakeDetermineVSServicePack.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeExpandImportedTargets.rst CMakeExpandImportedTargets.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeFindDependencyMacro.rst CMakeFindDependencyMacro.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeFindFrameworks.rst CMakeFindFrameworks.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeFindPackageMode.rst CMakeFindPackageMode.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeForceCompiler.rst CMakeForceCompiler.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeGraphVizOptions.rst CMakeGraphVizOptions.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakePackageConfigHelpers.rst CMakePackageConfigHelpers.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeParseArguments.rst CMakeParseArguments.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakePrintHelpers.rst CMakePrintHelpers.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakePrintSystemInformation.rst CMakePrintSystemInformation.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakePushCheckState.rst CMakePushCheckState.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CMakeVerifyManifest.rst CMakeVerifyManifest.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CPack.rst CPack.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CPackArchive.rst CPackArchive.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CPackBundle.rst CPackBundle.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CPackComponent.rst CPackComponent.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CPackCygwin.rst CPackCygwin.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CPackDMG.rst CPackDMG.rst
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Help/module/CPackDeb.rst CPackDeb.rst

... ...

mkdir -p /usr/local/share/cmake/Modules/IntelVSImplicitPath
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/IntelVSImplicitPath/CMakeLists.txt CMakeLists.txt
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/IntelVSImplicitPath/detect.cmake detect.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/IntelVSImplicitPath/hello.f hello.f
mkdir -p /usr/local/share/cmake/Modules/Internal
mkdir -p /usr/local/share/cmake/Modules/Internal/CPack
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Internal/CPack/CPackDeb.cmake CPackDeb.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Internal/CPack/CPackExternal.cmake CPackExternal.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Internal/CPack/CPackFreeBSD.cmake CPackFreeBSD.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Internal/CPack/CPackNuGet.cmake CPackNuGet.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Internal/CPack/CPackRPM.cmake CPackRPM.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Internal/CPack/CPackWIX.cmake CPackWIX.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Internal/CPack/CPackZIP.cmake CPackZIP.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Internal/FeatureTesting.cmake FeatureTesting.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/KDE3Macros.cmake KDE3Macros.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/MacOSXBundleInfo.plist.in MacOSXBundleInfo.plist.in
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/MacOSXFrameworkInfo.plist.in MacOSXFrameworkInfo.plist.in
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/MacroAddFileDependencies.cmake MacroAddFileDependencies.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/MatlabTestsRedirect.cmake MatlabTestsRedirect.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/NSIS.InstallOptions.ini.in NSIS.InstallOptions.ini.in
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/NSIS.template.in NSIS.template.in
mkdir -p /usr/local/share/cmake/Modules/Platform
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-Clang-C.cmake AIX-Clang-C.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-Clang-CXX.cmake AIX-Clang-CXX.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-GNU-ASM.cmake AIX-GNU-ASM.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-GNU-C.cmake AIX-GNU-C.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-GNU-CXX.cmake AIX-GNU-CXX.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-GNU-Fortran.cmake AIX-GNU-Fortran.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-GNU.cmake AIX-GNU.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-VisualAge-C.cmake AIX-VisualAge-C.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-VisualAge-CXX.cmake AIX-VisualAge-CXX.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-VisualAge-Fortran.cmake AIX-VisualAge-Fortran.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-XL-ASM.cmake AIX-XL-ASM.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-XL-C.cmake AIX-XL-C.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-XL-CXX.cmake AIX-XL-CXX.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-XL-Fortran.cmake AIX-XL-Fortran.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX-XL.cmake AIX-XL.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/AIX.cmake AIX.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/ARTOS-GNU-C.cmake ARTOS-GNU-C.cmake
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/ARTOS.cmake ARTOS.cmake
mkdir -p /usr/local/share/cmake/Modules/Platform/Android
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/Determine-Compiler-NDK.cmake Determine-Compiler-NDK.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/Determine-Compiler-Standalone.cmake Determine-Compiler-Standalone.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/Determine-Compiler.cmake Determine-Compiler.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-arm64-v8a-Clang.cmake abi-arm64-v8a-Clang.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-arm64-v8a-GNU.cmake abi-arm64-v8a-GNU.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-armeabi-Clang.cmake abi-armeabi-Clang.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-armeabi-GNU.cmake abi-armeabi-GNU.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-armeabi-v6-Clang.cmake abi-armeabi-v6-Clang.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-armeabi-v6-GNU.cmake abi-armeabi-v6-GNU.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-armeabi-v7a-Clang.cmake abi-armeabi-v7a-Clang.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-armeabi-v7a-GNU.cmake abi-armeabi-v7a-GNU.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-common-Clang.cmake abi-common-Clang.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-common-GNU.cmake abi-common-GNU.cmake
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/Modules/Platform/Android/abi-common.cmake abi-common.cmake

... ...

mkdir -p /usr/local/share/cmake/Modules/UseSWIG
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Modules/UseSWIG/ManageSupportFiles.cmake ManageSupportFiles.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/UseSWIG.cmake UseSWIG.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/Use_wxWindows.cmake Use_wxWindows.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/UsewxWidgets.cmake UsewxWidgets.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/VTKCompatibility.cmake VTKCompatibility.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/WIX.template.in WIX.template.in
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/WriteBasicConfigVersionFile.cmake WriteBasicConfigVersionFile.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/WriteCompilerDetectionHeader.cmake WriteCompilerDetectionHeader.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/ecos_clean.cmake ecos_clean.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/exportheader.cmake.in exportheader.cmake.in
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/javaTargets.cmake.in javaTargets.cmake.in
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/kde3init_dummy.cpp.in kde3init_dummy.cpp.in
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/kde3uic.cmake kde3uic.cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Modules/readme.txt readme.txt
mkdir -p /usr/local/share/cmake/Templates
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/AppleInfo.plist AppleInfo.plist
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/CMakeVSMacros1.vsmacros CMakeVSMacros1.vsmacros
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/CMakeVSMacros2.vsmacros CMakeVSMacros2.vsmacros
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/CPack.GenericDescription.txt CPack.GenericDescription.txt
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/CPack.GenericLicense.txt CPack.GenericLicense.txt
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/CPack.GenericWelcome.txt CPack.GenericWelcome.txt
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/CPackConfig.cmake.in CPackConfig.cmake.in
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/CTestScript.cmake.in CTestScript.cmake.in
mkdir -p /usr/local/share/cmake/Templates/MSBuild
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/MSBuild/nasm.props.in nasm.props.in
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/MSBuild/nasm.targets nasm.targets
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/MSBuild/nasm.xml nasm.xml
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/Templates/TestDriver.cxx.in TestDriver.cxx.in
mkdir -p /usr/local/share/cmake/Templates/Windows
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/Windows/ApplicationIcon.png ApplicationIcon.png
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/Windows/Logo.png Logo.png
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/Windows/SmallLogo.png SmallLogo.png
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/Windows/SmallLogo44x44.png SmallLogo44x44.png
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/Windows/SplashScreen.png SplashScreen.png
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/Windows/StoreLogo.png StoreLogo.png
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/Templates/Windows/Windows_TemporaryKey.pfx Windows_TemporaryKey.pfx
mkdir -p /usr/local/share/cmake/completions
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/completions/cmake cmake
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/completions/cpack cpack
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/completions/ctest ctest
mkdir -p /usr/local/share/cmake/editors
mkdir -p /usr/local/share/cmake/editors/emacs
ln -s ../../../../Cellar/cmake/3.13.4/share/cmake/editors/emacs/cmake-mode.el cmake-mode.el
mkdir -p /usr/local/share/cmake/editors/vim
mkdir -p /usr/local/share/cmake/editors/vim/indent
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/editors/vim/indent/cmake.vim cmake.vim
mkdir -p /usr/local/share/cmake/editors/vim/syntax
ln -s ../../../../../Cellar/cmake/3.13.4/share/cmake/editors/vim/syntax/cmake.vim cmake.vim
mkdir -p /usr/local/share/cmake/include
ln -s ../../../Cellar/cmake/3.13.4/share/cmake/include/cmCPluginAPI.h cmCPluginAPI.h
ln -s ../../../Cellar/eigen/3.3.7/share/cmake/Modules/FindEigen3.cmake FindEigen3.cmake
ln -s ../Cellar/eigen/3.3.7/share/eigen3 eigen3
rm /usr/local/share/pkgconfig
ln -s ../../Cellar/mariadb/10.4.6_1/share/pkgconfig/mariadb.pc mariadb.pc
ln -s ../../Cellar/eigen/3.3.7/share/pkgconfig/eigen3.pc eigen3.pc
/usr/bin/sandbox-exec -f /private/tmp/homebrew20200216-2989-1c902qr.sb nice ruby -W0 -I $LOAD_PATH -- /usr/local/Homebrew/Library/Homebrew/postinstall.rb /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/eigen.rb
==> Summary
🍺  /usr/local/Cellar/eigen/3.3.7: 487 files, 6.5MB



安裝完成後,檢查一下include。

$ ls -l /usr/local/include/eigen3
lrwxr-xr-x  1 david  admin  36  2 16 16:58 /usr/local/include/eigen3 -> ../Cellar/eigen/3.3.7/include/eigen3
$ ls /usr/local/include/eigen3
Eigen					signature_of_eigen3_matrix_library	unsupported
$

測試第一個Eigen程序

編寫第一個Eigen程序

編寫如下的第一個使用Eigen的程序,保存爲 hello_eigen.cpp,如下:


#include <iostream>
#include <Eigen/Dense>
using Eigen::MatrixXd;
int main()
{
  MatrixXd m(2,2);
  m(0,0) = 1.1;
  m(1,0) = 2.1;
  m(0,1) = 1.2;
  m(1,1) = m(1,0) + m(0,1);
  std::cout << m << std::endl;
}

編譯

現在在程序目錄下,執行命令:

$ g++ hello_eigen.cpp -o hello_eigen  -I /usr/local/include/eigen3

執行

執行程序,查看輸出結果,如下命令:

$ ./hello_eigen
1.1 1.2
2.1 3.3

如上,表示Eigen可以正常使用了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章