mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Clang-format tests, examples, libraries, benchmarks, etc.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
3252ecc7a4
commit
46e9cdb7fe
@@ -13,14 +13,13 @@
|
||||
#include <Eigen/PaStiXSupport>
|
||||
#include <unsupported/Eigen/SparseExtra>
|
||||
|
||||
|
||||
template<typename T> void test_pastix_T()
|
||||
{
|
||||
PastixLLT< SparseMatrix<T, ColMajor>, Eigen::Lower > pastix_llt_lower;
|
||||
PastixLDLT< SparseMatrix<T, ColMajor>, Eigen::Lower > pastix_ldlt_lower;
|
||||
PastixLLT< SparseMatrix<T, ColMajor>, Eigen::Upper > pastix_llt_upper;
|
||||
PastixLDLT< SparseMatrix<T, ColMajor>, Eigen::Upper > pastix_ldlt_upper;
|
||||
PastixLU< SparseMatrix<T, ColMajor> > pastix_lu;
|
||||
template <typename T>
|
||||
void test_pastix_T() {
|
||||
PastixLLT<SparseMatrix<T, ColMajor>, Eigen::Lower> pastix_llt_lower;
|
||||
PastixLDLT<SparseMatrix<T, ColMajor>, Eigen::Lower> pastix_ldlt_lower;
|
||||
PastixLLT<SparseMatrix<T, ColMajor>, Eigen::Upper> pastix_llt_upper;
|
||||
PastixLDLT<SparseMatrix<T, ColMajor>, Eigen::Upper> pastix_ldlt_upper;
|
||||
PastixLU<SparseMatrix<T, ColMajor> > pastix_lu;
|
||||
|
||||
check_sparse_spd_solving(pastix_llt_lower);
|
||||
check_sparse_spd_solving(pastix_ldlt_lower);
|
||||
@@ -37,18 +36,17 @@ template<typename T> void test_pastix_T()
|
||||
pastix_lu.dparm();
|
||||
}
|
||||
|
||||
// There is no support for selfadjoint matrices with PaStiX.
|
||||
// There is no support for selfadjoint matrices with PaStiX.
|
||||
// Complex symmetric matrices should pass though
|
||||
template<typename T> void test_pastix_T_LU()
|
||||
{
|
||||
PastixLU< SparseMatrix<T, ColMajor> > pastix_lu;
|
||||
template <typename T>
|
||||
void test_pastix_T_LU() {
|
||||
PastixLU<SparseMatrix<T, ColMajor> > pastix_lu;
|
||||
check_sparse_square_solving(pastix_lu);
|
||||
}
|
||||
|
||||
EIGEN_DECLARE_TEST(pastix_support)
|
||||
{
|
||||
EIGEN_DECLARE_TEST(pastix_support) {
|
||||
CALL_SUBTEST_1(test_pastix_T<float>());
|
||||
CALL_SUBTEST_2(test_pastix_T<double>());
|
||||
CALL_SUBTEST_3( (test_pastix_T_LU<std::complex<float> >()) );
|
||||
CALL_SUBTEST_3((test_pastix_T_LU<std::complex<float> >()));
|
||||
CALL_SUBTEST_4(test_pastix_T_LU<std::complex<double> >());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user