User Guide
crout.cpp File Reference
#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.

Functions

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())
 https://stackoverflow.com/questions/15051367/how-to-compare-vectors-approximately-in-eigen More...
 
template<typename T >
bool test_Crout_correctness (T rtol=1e-8, T atol=1e-8)
 
 SCENARIO ("Compare Crout solver with Eigen")
 

Function Documentation

◆ 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"  )

Definition at line 122 of file crout.cpp.

◆ test_Crout_correctness()

template<typename T >
bool test_Crout_correctness ( rtol = 1e-8,
atol = 1e-8 
)

Definition at line 38 of file crout.cpp.