Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
newton_step.h
Go to the documentation of this file.
1/* This file is part of Cloudy and is copyright (C)1978-2025 by Gary J. Ferland and
2 * others. For conditions of distribution and use see copyright notice in license.txt */
3
4#ifndef NEWTON_STEP_H_
5#define NEWTON_STEP_H_
6
7class GroupMap;
8
9/* mole_co_priv.h */
14bool newton_step(GroupMap &mole_map, const valarray<double> &oldmols, valarray<double> &newmols, realnum *eqerror, realnum *error, const long n,
15 double *rlimit, double *rmax,
16 valarray<double> &escale,
17 void (*jacobn)(GroupMap &mole_map,
18 const valarray<double> &b2vec,
19 double * const ervals, double * const amat,
20 const bool lgJac, bool *lgConserved));
21
22typedef void (*error_print_t)(long, long,
23 const valarray<double> &,
24 const valarray<double> &);
25
26int32 solve_system(const valarray<double> &a, valarray<double> &b,
27 long int n, error_print_t error_print);
28
29#endif /* NEWTON_STEP_H_ */
float realnum
Definition cddefines.h:127
Definition mole_priv.h:21
int32 solve_system(const valarray< double > &a, valarray< double > &b, long int n, error_print_t error_print)
Definition newton_step.cpp:346
bool newton_step(GroupMap &mole_map, const valarray< double > &oldmols, valarray< double > &newmols, realnum *eqerror, realnum *error, const long n, double *rlimit, double *rmax, valarray< double > &escale, void(*jacobn)(GroupMap &mole_map, const valarray< double > &b2vec, double *const ervals, double *const amat, const bool lgJac, bool *lgConserved))
Definition newton_step.cpp:30
void(* error_print_t)(long, long, const valarray< double > &, const valarray< double > &)
Definition newton_step.h:22