mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
order, one bit for enabling/disabling auto-alignment. If you want to disable, do: Matrix<float,4,1,Matrix_DontAlign> The Matrix_ prefix is the only way I can see to avoid ambiguity/pollution. The old RowMajor, ColMajor constants are deprecated, remain for now. * this prompted several improvements in matrix_storage. ei_aligned_array renamed to ei_matrix_array and moved there. The %16==0 tests are now much more centralized in 1 place there. * unalignedassert test: updated * update FindEigen2.cmake from KDElibs * determinant test: use VERIFY_IS_APPROX to fix false positives; add testing of 1 big matrix
33 lines
774 B
CMake
33 lines
774 B
CMake
# - Try to find Eigen2 lib
|
|
# Once done this will define
|
|
#
|
|
# EIGEN2_FOUND - system has eigen lib
|
|
# EIGEN2_INCLUDE_DIR - the eigen include directory
|
|
|
|
# Copyright (c) 2006, 2007 Montel Laurent, <montel@kde.org>
|
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
|
|
|
if (EIGEN2_INCLUDE_DIR)
|
|
|
|
# in cache already
|
|
set(EIGEN2_FOUND TRUE)
|
|
|
|
else (EIGEN2_INCLUDE_DIR)
|
|
|
|
find_path(EIGEN2_INCLUDE_DIR NAMES Eigen/Core
|
|
PATHS
|
|
${INCLUDE_INSTALL_DIR}
|
|
${KDE4_INCLUDE_DIR}
|
|
PATH_SUFFIXES eigen2
|
|
)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Eigen2 DEFAULT_MSG EIGEN2_INCLUDE_DIR )
|
|
|
|
|
|
mark_as_advanced(EIGEN2_INCLUDE_DIR)
|
|
|
|
endif(EIGEN2_INCLUDE_DIR)
|
|
|