LevelS SHT library
3.50
libsharp
sharp_legendre_roots.h
Go to the documentation of this file.
1
/*
2
* This file is part of libsharp.
3
*
4
* libsharp is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
8
*
9
* libsharp is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with libsharp; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
/*
20
* libsharp is being developed at the Max-Planck-Institut fuer Astrophysik
21
* and financially supported by the Deutsches Zentrum fuer Luft- und Raumfahrt
22
* (DLR).
23
*/
24
25
/*! \file sharp_legendre_roots.h
26
*
27
* Copyright (C) 2006-2012 Max-Planck-Society
28
* \author Martin Reinecke
29
*/
30
31
#ifndef SHARP_LEGENDRE_ROOTS_H
32
#define SHARP_LEGENDRE_ROOTS_H
33
34
#ifdef __cplusplus
35
extern
"C"
{
36
#endif
37
38
/*! Computes roots and Gaussian quadrature weights for Legendre polynomial
39
of degree \a n.
40
\param n Order of Legendre polynomial
41
\param x Array of length \a n for output (root position)
42
\param w Array of length \a w for output (weight for Gaussian quadrature)
43
*/
44
void
sharp_legendre_roots
(
int
n,
double
*x,
double
*w);
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
sharp_legendre_roots
void sharp_legendre_roots(int n, double *x, double *w)
Definition:
sharp_legendre_roots.c:16
Generated on Mon Dec 10 2018 10:24:20 for LevelS SHT library