#include "crout/crout.hpp"
#include <catch2/catch_test_macros.hpp>
#include <chrono>
#include <iostream>
#include <random>
#include "Eigen/Dense"
#include "Eigen/LU"
Go to the source code of this file.
◆ allclose()
template<typename DerivedA , typename DerivedB >
bool allclose |
( |
const Eigen::DenseBase< DerivedA > & |
a, |
|
|
const Eigen::DenseBase< DerivedB > & |
b, |
|
|
const typename DerivedA::RealScalar & |
rtol = Eigen::NumTraits<typename DerivedA::RealScalar>::dummy_precision() , |
|
|
const typename DerivedA::RealScalar & |
atol = Eigen::NumTraits<typename DerivedA::RealScalar>::epsilon() |
|
) |
| |
◆ SCENARIO()
SCENARIO |
( |
"Compare Crout solver with Eigen" |
| ) |
|
◆ test_Crout_correctness()
template<typename T >
bool test_Crout_correctness |
( |
T |
rtol = 1e-8 , |
|
|
T |
atol = 1e-8 |
|
) |
| |