ARTS  2.3.1285(git:92a29ea9-dirty)
lineshapemodel.cc File Reference

Contains the line shape namespace. More...

#include "lineshapemodel.h"

Go to the source code of this file.

Macros

#define ReturnJacPropMatType(ID)
 

Functions

ArrayOfString AllLineShapeCoeffs ()
 All available line shape coefficients. More...
 
ArrayOfString AllLineShapeVars ()
 All available line shape variables. More...
 
JacPropMatType select_derivativeLineShape (const String &var, const String &coeff)
 Select the derivative that will be used in Jacobian calculations — also checks validity of var and coeff. More...
 

Detailed Description

Contains the line shape namespace.

Author
Richard Larsson
Date
2018-09-19

Implementations of lineshapemodel.h

This mostly contains functions that either did not compile while placed in the header or for other reasons are not there. This means most of the real work happens in the header file and not here

Definition in file lineshapemodel.cc.

Macro Definition Documentation

◆ ReturnJacPropMatType

#define ReturnJacPropMatType (   ID)
Value:
(var == #ID) { \
if (coeff == "X0") \
return JacPropMatType::LineShape##ID##X0; \
else if (coeff == "X1") \
return JacPropMatType::LineShape##ID##X1; \
else if (coeff == "X2") \
return JacPropMatType::LineShape##ID##X2; \
else if (coeff == "X3") \
return JacPropMatType::LineShape##ID##X3; \
}
void var(VectorView var, const Vector &y, const ArrayOfVector &ys, const Index start=0, const Index end=-1)
Compute the variance of the ranged ys.
Definition: raw.cc:49

Function Documentation

◆ AllLineShapeCoeffs()

ArrayOfString AllLineShapeCoeffs ( )

All available line shape coefficients.

Definition at line 37 of file lineshapemodel.cc.

Referenced by jacobianAddShapeCatalogParameters(), and select_derivativeLineShape().

◆ AllLineShapeVars()

ArrayOfString AllLineShapeVars ( )

◆ select_derivativeLineShape()

JacPropMatType select_derivativeLineShape ( const String var,
const String coeff 
)

Select the derivative that will be used in Jacobian calculations — also checks validity of var and coeff.

Return the derivative type based on string input.

Definition at line 43 of file lineshapemodel.cc.

References all_coefficientsLineFunctionData(), all_variablesLineFunctionData(), AllLineShapeCoeffs(), and AllLineShapeVars().