Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
nf_integration.h
Go to the documentation of this file.
1/*
2# <<BEGIN-copyright>>
3# Copyright 2019, Lawrence Livermore National Security, LLC.
4# This file is part of the gidiplus package (https://github.com/LLNL/gidiplus).
5# gidiplus is licensed under the MIT license (see https://opensource.org/licenses/MIT).
6# SPDX-License-Identifier: MIT
7# <<END-copyright>>
8*/
9
10#ifndef nf_integration_h_included
11#define nf_integration_h_included
12
13#include <nf_utilities.h>
14#include <nf_Legendre.h>
15
16#if defined __cplusplus
17 extern "C" {
18#endif
19
20#define nf_GnG_adaptiveQuadrature_MaxMaxDepth 20
21
22typedef nfu_status (*nf_GnG_adaptiveQuadrature_callback)( nf_Legendre_GaussianQuadrature_callback integrandFunction, void *argList, double x1,
23 double x2, double *integral );
24
26 void *argList, double x1, double x2, int maxDepth, double tolerance, double *integral, long *evaluations );
27
28#if defined __cplusplus
29 }
30#endif
31
32#endif /* End of nf_integration_h_included. */
33
nfu_status(* nf_Legendre_GaussianQuadrature_callback)(double x, double *y, void *argList)
Definition nf_Legendre.h:33
nfu_status nf_GnG_adaptiveQuadrature(nf_GnG_adaptiveQuadrature_callback quadratureFunction, nf_Legendre_GaussianQuadrature_callback integrandFunction, void *argList, double x1, double x2, int maxDepth, double tolerance, double *integral, long *evaluations)
nfu_status(* nf_GnG_adaptiveQuadrature_callback)(nf_Legendre_GaussianQuadrature_callback integrandFunction, void *argList, double x1, double x2, double *integral)
enum nfu_status_e nfu_status