GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
Quad Class Referenceabstract

#include "Quad.h"

Inheritance diagram for Quad:
Quad_options DefQuad FloatDefQuad FloatIndefQuad IndefQuad

Public Member Functions

 Quad ()=delete
 
 Quad (float_integrand_fcn fcn)
 
 Quad (integrand_fcn fcn)
 
virtual ~Quad ()=default
 
virtual double do_integrate (octave_idx_type &ier, octave_idx_type &neval, double &abserr)=0
 
virtual float do_integrate (octave_idx_type &ier, octave_idx_type &neval, float &abserr)=0
 
virtual float float_integrate ()
 
virtual float float_integrate (octave_idx_type &ier)
 
virtual float float_integrate (octave_idx_type &ier, octave_idx_type &neval)
 
virtual float float_integrate (octave_idx_type &ier, octave_idx_type &neval, float &abserr)
 
virtual double integrate ()
 
virtual double integrate (octave_idx_type &ier)
 
virtual double integrate (octave_idx_type &ier, octave_idx_type &neval)
 
virtual double integrate (octave_idx_type &ier, octave_idx_type &neval, double &abserr)
 
- Public Member Functions inherited from Quad_options
 Quad_options ()
 
 Quad_options (const Quad_options &opt)
 
 ~Quad_options ()
 
double absolute_tolerance () const
 
void init ()
 
Quad_optionsoperator= (const Quad_options &opt)
 
double relative_tolerance () const
 
void set_absolute_tolerance (double val)
 
void set_default_options ()
 
void set_options (const Quad_options &opt)
 
void set_relative_tolerance (double val)
 
void set_single_precision_absolute_tolerance (float val)
 
void set_single_precision_relative_tolerance (float val)
 
float single_precision_absolute_tolerance () const
 
float single_precision_relative_tolerance () const
 

Protected Attributes

integrand_fcn m_f
 
float_integrand_fcn m_ff
 
- Protected Attributes inherited from Quad_options
bool m_reset
 

Detailed Description

Definition at line 39 of file Quad.h.

Constructor & Destructor Documentation

◆ Quad() [1/3]

Quad::Quad ( )
delete

◆ Quad() [2/3]

Quad::Quad ( integrand_fcn  fcn)
inline

Definition at line 47 of file Quad.h.

◆ Quad() [3/3]

Quad::Quad ( float_integrand_fcn  fcn)
inline

Definition at line 50 of file Quad.h.

◆ ~Quad()

virtual Quad::~Quad ( )
virtualdefault

Member Function Documentation

◆ do_integrate() [1/2]

virtual double Quad::do_integrate ( octave_idx_type ier,
octave_idx_type neval,
double &  abserr 
)
pure virtual

Implemented in FloatIndefQuad, FloatDefQuad, IndefQuad, and DefQuad.

◆ do_integrate() [2/2]

virtual float Quad::do_integrate ( octave_idx_type ier,
octave_idx_type neval,
float &  abserr 
)
pure virtual

Implemented in FloatIndefQuad, FloatDefQuad, IndefQuad, and DefQuad.

◆ float_integrate() [1/4]

virtual float Quad::float_integrate ( )
inlinevirtual

Definition at line 64 of file Quad.h.

◆ float_integrate() [2/4]

virtual float Quad::float_integrate ( octave_idx_type ier)
inlinevirtual

Definition at line 78 of file Quad.h.

◆ float_integrate() [3/4]

virtual float Quad::float_integrate ( octave_idx_type ier,
octave_idx_type neval 
)
inlinevirtual

Definition at line 91 of file Quad.h.

◆ float_integrate() [4/4]

virtual float Quad::float_integrate ( octave_idx_type ier,
octave_idx_type neval,
float &  abserr 
)
inlinevirtual

Definition at line 103 of file Quad.h.

◆ integrate() [1/4]

virtual double Quad::integrate ( )
inlinevirtual

Definition at line 57 of file Quad.h.

◆ integrate() [2/4]

virtual double Quad::integrate ( octave_idx_type ier)
inlinevirtual

Definition at line 71 of file Quad.h.

◆ integrate() [3/4]

virtual double Quad::integrate ( octave_idx_type ier,
octave_idx_type neval 
)
inlinevirtual

Definition at line 85 of file Quad.h.

◆ integrate() [4/4]

virtual double Quad::integrate ( octave_idx_type ier,
octave_idx_type neval,
double &  abserr 
)
inlinevirtual

Definition at line 97 of file Quad.h.

Member Data Documentation

◆ m_f

integrand_fcn Quad::m_f
protected

Definition at line 117 of file Quad.h.

◆ m_ff

float_integrand_fcn Quad::m_ff
protected

Definition at line 118 of file Quad.h.


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