ReFRACtor
FullPhysics::LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > > Class Template Reference

This is a specialization of LinearInterpolate for AutoDerivative. More...

#include <linear_interpolate_ad.h>

+ Inheritance diagram for FullPhysics::LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > >:
+ Collaboration diagram for FullPhysics::LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > >:

Public Types

enum  BehaviorOutOfRange { OUT_OF_RANGE_EXTRAPOLATE = 0, OUT_OF_RANGE_CLIP, OUT_OF_RANGE_ERROR }
 

Public Member Functions

 LinearInterpolate ()
 
template<class I1 , class I2 >
 LinearInterpolate (I1 xstart, I1 xend, I2 ystart, BehaviorOutOfRange Out_of_range=OUT_OF_RANGE_EXTRAPOLATE)
 Constructor. More...
 
void interpolate (const AutoDerivative< double > &x, const AutoDerivativeRef< double > &res) const
 
AutoDerivative< double > operator() (const AutoDerivative< double > &x) const
 
void print (std::ostream &Os) const
 
std::string print_to_string () const
 Print to string. More...
 

Detailed Description

template<>
class FullPhysics::LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > >

This is a specialization of LinearInterpolate for AutoDerivative.

This specialization should run faster.

Definition at line 89 of file linear_interpolate_ad.h.

Member Enumeration Documentation

◆ BehaviorOutOfRange

Enumerator
OUT_OF_RANGE_EXTRAPOLATE 
OUT_OF_RANGE_CLIP 
OUT_OF_RANGE_ERROR 

Definition at line 94 of file linear_interpolate_ad.h.

Constructor & Destructor Documentation

◆ LinearInterpolate() [1/2]

Definition at line 96 of file linear_interpolate_ad.h.

◆ LinearInterpolate() [2/2]

template<class I1 , class I2 >
FullPhysics::LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > >::LinearInterpolate ( I1  xstart,
I1  xend,
I2  ystart,
BehaviorOutOfRange  Out_of_range = OUT_OF_RANGE_EXTRAPOLATE 
)
inline

Constructor.

This takes iterators to give x and y, along with the behavior when called with out of range data.

Definition at line 103 of file linear_interpolate_ad.h.

Member Function Documentation

◆ interpolate()

void FullPhysics::LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > >::interpolate ( const AutoDerivative< double > &  x,
const AutoDerivativeRef< double > &  res 
) const
inline

Definition at line 188 of file linear_interpolate_ad.h.

◆ operator()()

AutoDerivative<double> FullPhysics::LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > >::operator() ( const AutoDerivative< double > &  x) const
inline

Definition at line 177 of file linear_interpolate_ad.h.

◆ print()

void FullPhysics::LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > >::print ( std::ostream &  Os) const
inline

Definition at line 245 of file linear_interpolate_ad.h.

◆ print_to_string()

std::string FullPhysics::Printable< LinearInterpolate< AutoDerivative< double >, AutoDerivative< double > > >::print_to_string ( ) const
inlineinherited

Print to string.

This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.

Definition at line 31 of file printable.h.


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

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:13