101 const bool& do_n0_jac,
102 const bool& do_mu_jac,
103 const bool& do_la_jac,
104 const bool& do_ga_jac);
149template <
typename MatpackType>
151 if (var.
empty())
return false;
152 if (
min(var) < 0)
return true;
base min(const Array< base > &x)
Min function.
A constant view of a Matrix.
A constant view of a Tensor3.
A constant view of a Vector.
bool empty() const noexcept
Returns true if variable size is zero.
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.
Implementation of Matrix, Vector, and such stuff.
NUMERIC Numeric
The type to use for all floating point numbers.
INDEX Index
The type to use for all integer numbers and indices.