-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseminf.h
63 lines (52 loc) · 2.05 KB
/
seminf.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
-------------------------------------------------------------------
Copyright (C) 2002-2020, Andrew W. Steiner
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-------------------------------------------------------------------
*/
#include <iostream>
#include <cmath>
#include <functional>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/numeric/ublas/matrix.hpp>
#include <boost/numeric/ublas/matrix_sparse.hpp>
#ifdef USE_EIGEN
#include <Eigen/Dense>
#endif
#include <o2scl/table.h>
#include <o2scl/constants.h>
#include <o2scl/part.h>
#include <o2scl/deriv_gsl.h>
#include <o2scl/hdf_file.h>
#include <o2scl/hdf_io.h>
#include <o2scl/hdf_eos_io.h>
#include <o2scl/lib_settings.h>
#include <o2scl/ode_it_solve.h>
#include <o2scl/linear_solver.h>
#include <o2scl/interp.h>
#ifdef USE_EIGEN
typedef Eigen::VectorXd si_vector_t;
typedef Eigen::MatrixXd si_matrix_t;
typedef Eigen::MatrixXd::RowXpr si_matrix_row_t;
typedef Eigen::MatrixXd si_sp_matrix_t;
#else
typedef boost::numeric::ublas::vector<double> si_vector_t;
typedef boost::numeric::ublas::matrix<double> si_matrix_t;
typedef boost::numeric::ublas::matrix_row<si_matrix_t> si_matrix_row_t;
typedef boost::numeric::ublas::matrix<double> si_sp_matrix_t;
#endif
typedef std::function<
int(size_t,si_vector_t &,size_t,si_vector_t &,si_matrix_t &)> jac_funct;
typedef std::function
<int(size_t,const si_vector_t &,si_vector_t &)> mm_funct;
typedef std::function
<double(size_t,double,si_matrix_row_t &)> ode_it_funct;