Fast Methods for Cosmological Simulations
FastSim serves as a tool for quick N-body simulations in modified gravity.
Catch::Matchers::Floating::WithinUlpsMatcher Struct Reference

#include <catch.hpp>

Inheritance diagram for Catch::Matchers::Floating::WithinUlpsMatcher:
Collaboration diagram for Catch::Matchers::Floating::WithinUlpsMatcher:

Public Member Functions

 WithinUlpsMatcher (double target, int ulps, FloatingPointKind baseType)
 
bool match (double const &matchee) const override
 
std::string describe () const override
 

Private Attributes

double m_target
 
int m_ulps
 
FloatingPointKind m_type
 

Detailed Description

Definition at line 2598 of file catch.hpp.

Constructor & Destructor Documentation

Catch::Matchers::Floating::WithinUlpsMatcher::WithinUlpsMatcher ( double  target,
int  ulps,
FloatingPointKind  baseType 
)

Member Function Documentation

std::string Catch::Matchers::Floating::WithinUlpsMatcher::describe ( ) const
override
bool Catch::Matchers::Floating::WithinUlpsMatcher::match ( double const &  matchee) const
override

Member Data Documentation

double Catch::Matchers::Floating::WithinUlpsMatcher::m_target
private

Definition at line 2603 of file catch.hpp.

FloatingPointKind Catch::Matchers::Floating::WithinUlpsMatcher::m_type
private

Definition at line 2605 of file catch.hpp.

int Catch::Matchers::Floating::WithinUlpsMatcher::m_ulps
private

Definition at line 2604 of file catch.hpp.


The documentation for this struct was generated from the following file: