ARTS  2.2.66
math_funcs.h
Go to the documentation of this file.
1 /* Copyright (C) 2002-2012
2  Patrick Eriksson <Patrick.Eriksson@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 Numeric fac(const Index n);
42 
43 Index integer_div( const Index& x, const Index& y );
44 
46 
47 Index last( const ArrayOfIndex& x );
48 
49 void linspace(
50  Vector& x,
51  const Numeric start,
52  const Numeric stop,
53  const Numeric step );
54 
55 void nlinspace(
56  Vector& x,
57  const Numeric start,
58  const Numeric stop,
59  const Index n );
60 
61 void nlogspace(
62  Vector& x,
63  const Numeric start,
64  const Numeric stop,
65  const Index n );
66 
68  ConstVectorView za_grid,
69  ConstVectorView aa_grid);
70 
72  ConstVectorView za_grid);
73 
75  ConstVectorView za_grid,
76  ConstVectorView aa_grid,
77  ConstVectorView grid_stepsize);
78 
79 Numeric sign( const Numeric& x );
80 
82 
84 
85 void unitl( Vector& x );
86 
87 #endif // math_funcs_h
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:35
Numeric lgamma_func(Numeric xx)
ln Gamma Function
Definition: math_funcs.cc:538
Numeric sign(const Numeric &x)
sign
Definition: math_funcs.cc:473
The Vector class.
Definition: matpackI.h:556
Numeric last(ConstVectorView x)
last
Definition: math_funcs.cc:183
Index integer_div(const Index &x, const Index &y)
integer_div
Definition: math_funcs.cc:95
void nlogspace(Vector &x, const Numeric start, const Numeric stop, const Index n)
nlogspace
Definition: math_funcs.cc:294
void nlinspace(Vector &x, const Numeric start, const Numeric stop, const Index n)
nlinspace
Definition: math_funcs.cc:261
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:29
void linspace(Vector &x, const Numeric start, const Numeric stop, const Numeric step)
linspace
Definition: math_funcs.cc:228
Numeric fac(const Index n)
fac
Definition: math_funcs.cc:68
This can be used to make arrays out of anything.
Definition: array.h:40
Numeric AngIntegrate_trapezoid(ConstMatrixView Integrand, ConstVectorView za_grid, ConstVectorView aa_grid)
AngIntegrate_trapezoid.
Definition: math_funcs.cc:327
Numeric gamma_func(Numeric xx)
Gamma Function.
Definition: math_funcs.cc:497
A constant view of a Vector.
Definition: matpackI.h:292
Numeric AngIntegrate_trapezoid_opti(ConstMatrixView Integrand, ConstVectorView za_grid, ConstVectorView aa_grid, ConstVectorView grid_stepsize)
AngIntegrate_trapezoid_opti.
Definition: math_funcs.cc:377
A constant view of a Matrix.
Definition: matpackI.h:596
void unitl(Vector &x)
lunit
Definition: math_funcs.cc:578