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

#include "Quad.h"

Inheritance diagram for IndefQuad:
Quad Quad_options

Public Types

enum  IntegralType { bound_to_inf , neg_inf_to_bound , doubly_infinite }
 

Public Member Functions

 IndefQuad ()=delete
 
 IndefQuad (integrand_fcn fcn)
 
 IndefQuad (integrand_fcn fcn, double b, IntegralType t)
 
double do_integrate (octave_idx_type &ier, octave_idx_type &neval, double &abserr)
 
OCTAVE_NORETURN float do_integrate (octave_idx_type &ier, octave_idx_type &neval, float &abserr)
 
- Public Member Functions inherited from Quad
 Quad ()=delete
 
 Quad (float_integrand_fcn fcn)
 
 Quad (integrand_fcn fcn)
 
virtual ~Quad ()=default
 
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
 

Additional Inherited Members

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

Detailed Description

Definition at line 162 of file Quad.h.

Member Enumeration Documentation

◆ IntegralType

Enumerator
bound_to_inf 
neg_inf_to_bound 
doubly_infinite 

Definition at line 168 of file Quad.h.

Constructor & Destructor Documentation

◆ IndefQuad() [1/3]

IndefQuad::IndefQuad ( )
delete

◆ IndefQuad() [2/3]

IndefQuad::IndefQuad ( integrand_fcn  fcn)
inline

Definition at line 172 of file Quad.h.

◆ IndefQuad() [3/3]

IndefQuad::IndefQuad ( integrand_fcn  fcn,
double  b,
IntegralType  t 
)
inline

Definition at line 175 of file Quad.h.

Member Function Documentation

◆ do_integrate() [1/2]

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

Implements Quad.

Definition at line 143 of file Quad.cc.

References Array< T, Alloc >::fortran_vec().

◆ do_integrate() [2/2]

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

Implements Quad.

Definition at line 201 of file Quad.cc.


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