Bayesian Analysis of Neutron Star Mass and Radius Observations
nstar_cold2.h
Go to the documentation of this file.
1 /*
2  -------------------------------------------------------------------
3 
4  Copyright (C) 2012-2014, Andrew W. Steiner
5 
6  This file is part of Bamr.
7 
8  Bamr is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 3 of the License, or
11  (at your option) any later version.
12 
13  Bamr is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with Bamr. If not, see <http://www.gnu.org/licenses/>.
20 
21  -------------------------------------------------------------------
22 */
23 /** \file nstar_cold2.h
24  \brief Definition of nstar_cold2
25 */
26 #ifndef MISC_H
27 #define MISC_H
28 
29 #include <iostream>
30 
31 #include <boost/numeric/ublas/vector.hpp>
32 #include <boost/numeric/ublas/matrix.hpp>
33 #include <boost/numeric/ublas/matrix_proxy.hpp>
34 
35 #include <o2scl/nstar_cold.h>
36 
37 namespace bamr {
38 
40  typedef boost::numeric::ublas::vector<size_t> ubvector_size_t;
42  typedef boost::numeric::ublas::matrix_column<ubmatrix> ubmatrix_column;
43 
44  /** \brief A simplified version of nstar_cold
45 
46  This simplified version only computes the energy density and
47  pressure rather than the \o2 version which computes several
48  extra quantities. This class is part of \ref bamr::model.
49  */
50  class nstar_cold2 : public o2scl::nstar_cold {
51 
52  public:
53 
54  /// Compute the core EOS
55  int calc_eos(double np_0=0.0);
56 
57  };
58 
59 }
60 
61 #endif
A simplified version of nstar_cold.
Definition: nstar_cold2.h:50
Main namespace.
Definition: bamr.h:54
int calc_eos(double np_0=0.0)
Compute the core EOS.

Documentation generated with Doxygen. Bamr documentation is under the GNU Free Documentation License.