ReFRACtor
ils_gaussian.cc
Go to the documentation of this file.
1 #include "ils_gaussian.h"
2 using namespace FullPhysics;
3 using namespace blitz;
4 
6 (const AutoDerivative<double>& wn_center,
7  const blitz::Array<double, 1>& wn,
8  ArrayAd<double, 1>& res_a) const
9 {
10  const double sqrt_PI = 1.7724538509055159;
11  Array<AutoDerivative<double>, 1> res(wn.shape());
12  res = exp(-sqr((wn - wn_center) / gamma)) / (gamma*sqrt_PI);
13  res_a.reference(ArrayAd<double, 1>(res));
14 }
Apply value function to a blitz array.
double sqr(double x)
void reference(const ArrayAd< T, D > &V)
Definition: array_ad.h:372
Contains classes to abstract away details in various Spurr Radiative Transfer software.
Definition: doxygen_python.h:1
virtual void ils(const AutoDerivative< double > &wn_center, const blitz::Array< double, 1 > &wn, ArrayAd< double, 1 > &res) const
Return response function.
Definition: ils_gaussian.cc:6

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