17#include "matpack_concepts.h"
18#include "matpack_data.h"
19#include "matpack_math.h"
21Numeric
fac(
const Index n);
25Numeric
last(ConstVectorView x);
49Numeric
trapz(ConstVectorView x,
52void cumsum(VectorView csum,
56 ConstVectorView za_grid,
57 ConstVectorView aa_grid);
60 ConstVectorView za_grid);
63 ConstVectorView za_grid,
64 ConstVectorView aa_grid,
65 ConstVectorView grid_stepsize);
67Numeric
sign(
const Numeric& x);
69void mgd(VectorView psd,
83 const bool& do_n0_jac,
84 const bool& do_mu_jac,
85 const bool& do_la_jac,
86 const bool& do_ga_jac);
106 const Numeric& alpha,
107 const Numeric& beta);
110 Numeric x, Numeric N0, Numeric Lambda, Numeric mu, Numeric gamma);
112void unitl(Vector& x);
114void flat(VectorView x, ConstMatrixView X);
115void flat(VectorView x, ConstTensor3View X);
117void reshape(MatrixView X, ConstVectorView x);
118void reshape(Tensor3View X, ConstVectorView x);
131template <
typename MatpackType>
133 if (var.empty())
return false;
134 if (
min(var) < 0)
return true;
This file contains the definition of Array.
base min(const Array< base > &x)
Min function.
void linspace(Vector &x, const Numeric start, const Numeric stop, const Numeric step)
linspace
void nlinspace(Vector &x, const Numeric start, const Numeric stop, const Index n)
nlinspace
void cumsum(VectorView csum, ConstVectorView x)
cumsum
void unitl(Vector &x)
unitl
void reshape(MatrixView X, ConstVectorView x)
reshape
Numeric fac(const Index n)
fac
constexpr Index pow_negative_one(Index x) noexcept
Computes std::pow(-1, x) without std::pow.
void nlogspace(Vector &x, const Numeric start, const Numeric stop, const Index n)
nlogspace
constexpr bool any_negative(const MatpackType &var) noexcept
Checks for negative values.
void mgd(VectorView psd, const Vector &x, const Numeric &n0, const Numeric &mu, const Numeric &la, const Numeric &ga)
void delanoe_shape_with_derivative(VectorView psd, MatrixView jac_data, const Vector &x, const Numeric &alpha, const Numeric &beta)
! Shape functions for normalized PSD.
void calculate_weights_linear(Vector &x, Vector &w, const Index nph)
calculate_weights_linear
Numeric trapz(ConstVectorView x, ConstVectorView y)
trapz
Numeric mod_gamma_dist(Numeric x, Numeric N0, Numeric Lambda, Numeric mu, Numeric gamma)
Generalized Modified Gamma Distribution.
void flat(VectorView x, ConstMatrixView X)
flat
Numeric last(ConstVectorView x)
last
Index integer_div(const Index &x, const Index &y)
integer_div
Numeric AngIntegrate_trapezoid(ConstMatrixView Integrand, ConstVectorView za_grid, ConstVectorView aa_grid)
AngIntegrate_trapezoid.
Numeric sign(const Numeric &x)
sign
void mgd_with_derivatives(VectorView psd, MatrixView jac_data, const Vector &x, const Numeric &n0, const Numeric &mu, const Numeric &la, const Numeric &ga, const bool &do_n0_jac, const bool &do_mu_jac, const bool &do_la_jac, const bool &do_ga_jac)
void calculate_int_weights_arbitrary_grid(Vector &w, const Vector &x)
Calculates trapezoidal integration weights for arbitray grid.
Numeric AngIntegrate_trapezoid_opti(ConstMatrixView Integrand, ConstVectorView za_grid, ConstVectorView aa_grid, ConstVectorView grid_stepsize)
AngIntegrate_trapezoid_opti.