NiHu  2.0
tmp::break_point< X, Y > Struct Template Reference

A break point consisting of a X and a Y value. More...

#include <interval.hpp>

Public Types

typedef break_point type
 Self-returning.
 
typedef X x
 the x data
 
typedef Y y
 the y data
 

Static Public Member Functions

template<class scalar_t = double>
constexpr static scalar_t x_value (void)
 Convert rational x value to scalar(double) More...
 

Detailed Description

template<class X, class Y>
struct tmp::break_point< X, Y >

A break point consisting of a X and a Y value.

Template Parameters
Xthe x value type
Ythe y value type

A break point can represent a non-dimensionalized distance limit where the number of quadrature base points needed for the precise evalution of the integral changes. A list of break points make up the interval. The x value of the break point is non-dimensional distance limit, and the y value is the number of base points required.

Definition at line 57 of file interval.hpp.

Member Function Documentation

◆ x_value()

template<class X , class Y >
template<class scalar_t = double>
constexpr static scalar_t tmp::break_point< X, Y >::x_value ( void  )
inlinestaticconstexpr

Convert rational x value to scalar(double)

Template Parameters
scalar_tThe conversion type (double is default)
Returns
The rational number converted to scalar_t

Definition at line 72 of file interval.hpp.


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