ARTS  2.0.49
math_funcs.h
Go to the documentation of this file.
1 /* Copyright (C) 2002-2008
2  Patrick Eriksson <Patrick.Eriksson@rss.chalmers.se>
3  Stefan Buehler <sbuehler@ltu.se>
4 
5  This program is free software; you can redistribute it and/or modify it
6  under the terms of the GNU General Public License as published by the
7  Free Software Foundation; either version 2, or (at your option) any
8  later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18  USA. */
19 
20 
21 
22 /*****************************************************************************
23  *** File description
24  *****************************************************************************/
25 
36 #ifndef math_funcs_h
37 #define math_funcs_h
38 
39 #include "matpackI.h"
40 
41 
42 
43 Numeric fac(const Index n);
44 
45 Index integer_div( const Index& x, const Index& y );
46 
48 
49 Index last( const ArrayOfIndex& x );
50 
51 void linspace(
52  Vector& x,
53  const Numeric start,
54  const Numeric stop,
55  const Numeric step );
56 
57 void nlinspace(
58  Vector& x,
59  const Numeric start,
60  const Numeric stop,
61  const Index n );
62 
63 void nlogspace(
64  Vector& x,
65  const Numeric start,
66  const Numeric stop,
67  const Index n );
68 
70  ConstVectorView za_grid,
71  ConstVectorView aa_grid);
72 
74  ConstVectorView za_grid);
75 
77  ConstVectorView za_grid,
78  ConstVectorView aa_grid,
79  ConstVectorView grid_stepsize);
80 
81 Numeric sign( const Numeric& x );
82 
84 
86 
87 #endif // math_funcs_h
integer_div
Index integer_div(const Index &x, const Index &y)
integer_div
Definition: math_funcs.cc:95
nlinspace
void nlinspace(Vector &x, const Numeric start, const Numeric stop, const Index n)
nlinspace
Definition: math_funcs.cc:261
gamma_func
Numeric gamma_func(Numeric xx)
Gamma Function.
Definition: math_funcs.cc:497
lgamma_func
Numeric lgamma_func(Numeric xx)
ln Gamma Function
Definition: math_funcs.cc:538
nlogspace
void nlogspace(Vector &x, const Numeric start, const Numeric stop, const Index n)
nlogspace
Definition: math_funcs.cc:294
matpackI.h
Array< Index >
sign
Numeric sign(const Numeric &x)
sign
Definition: math_funcs.cc:473
Numeric
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:33
last
Numeric last(ConstVectorView x)
last
Definition: math_funcs.cc:183
fac
Numeric fac(const Index n)
fac
Definition: math_funcs.cc:68
ConstMatrixView
A constant view of a Matrix.
Definition: matpackI.h:591
linspace
void linspace(Vector &x, const Numeric start, const Numeric stop, const Numeric step)
linspace
Definition: math_funcs.cc:228
AngIntegrate_trapezoid_opti
Numeric AngIntegrate_trapezoid_opti(ConstMatrixView Integrand, ConstVectorView za_grid, ConstVectorView aa_grid, ConstVectorView grid_stepsize)
AngIntegrate_trapezoid_opti.
Definition: math_funcs.cc:377
Index
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:39
Vector
The Vector class.
Definition: matpackI.h:555
AngIntegrate_trapezoid
Numeric AngIntegrate_trapezoid(ConstMatrixView Integrand, ConstVectorView za_grid, ConstVectorView aa_grid)
AngIntegrate_trapezoid.
Definition: math_funcs.cc:327
ConstVectorView
A constant view of a Vector.
Definition: matpackI.h:300