ARTS  2.4.0(git:4fb77825)
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)
 Return the derivative type based on string input. 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; \
}

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 
)

Return the derivative type based on string input.

Parameters
[in]varVariable in AllLineShapeVars()
[in]coeffCoefficient in AllLineShapeCoeffs()
Returns
Derivative

Definition at line 43 of file lineshapemodel.cc.

References AllLineShapeCoeffs(), AllLineShapeVars(), and linalg::var().

Referenced by jacobianAddShapeCatalogParameter().

linalg::var
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