class Gambit::BBN_container

[No description available] More…

#include <AlterBBN.hpp>

Public Functions

Name
BBN_container()
Constructor.
voidinit_arr_size(size_t nnuc)
Initialize sizes of vectors (get NNUC, number of computed element abundances, from AlterBBN)
voidset_abund_map(map_str_int map_in)
Initialise the translation map from element name to position in abundance vector.
voidset_BBN_abund(int pos, double val)
Setter functions for abundance vector.
voidset_BBN_abund(int pos, triplet< double > val)
voidset_BBN_covmat(int row, int col, double val)
Setter function for covariance matrix.
size_tget_NNUC() const
Global parameter in AlterBBN; holds number of computed element abundances.
const std::map< std::string, int > &get_abund_map() const
Getter for map from isotope names to position in BBN_abundance vector.
doubleget_BBN_abund(int pos) const
Getter for abundance.
doubleget_BBN_abund_upper(int pos) const
doubleget_BBN_abund_lower(int pos) const
doubleget_BBN_abund(str iso) const
Getter for abundance.
doubleget_BBN_abund_upper(str iso) const
doubleget_BBN_abund_lower(str iso) const
doubleget_BBN_covmat(int row, int col) const
Getter for covariance matrix.
voidset_active_isotopes(std::set< str > isos)
Setter for active isotopes.
const std::set< str > &get_active_isotopes() const
Getter for active isotopes.
const std::set< int > &get_active_isotope_indices() const
Getter for indices of active isotopes in BBN_abundance vector.
boolhas_BBN_abund_upper() const
Check whether there is any non-zero upper or lower abundance.
boolhas_BBN_abund_lower() const

Detailed Description

class Gambit::BBN_container;

Class to store all results from an AlterBBN run. This class needs to be fully defined in the header in order to prevent linking problems when building the ScannerBit standalone. -> element abundances stored in BBN_nuc (length NNUC+1), -> covariance matrix in BBN_covmat ( dim NNUC+1 x NNUC+1) -> abund_map maps name of element to position in BBN_abundance vector see constructor of BBN_container

Public Functions Documentation

function BBN_container

inline BBN_container()

Constructor.

function init_arr_size

inline void init_arr_size(
    size_t nnuc
)

Initialize sizes of vectors (get NNUC, number of computed element abundances, from AlterBBN)

function set_abund_map

inline void set_abund_map(
    map_str_int map_in
)

Initialise the translation map from element name to position in abundance vector.

function set_BBN_abund

inline void set_BBN_abund(
    int pos,
    double val
)

Setter functions for abundance vector.

function set_BBN_abund

inline void set_BBN_abund(
    int pos,
    triplet< double > val
)

function set_BBN_covmat

inline void set_BBN_covmat(
    int row,
    int col,
    double val
)

Setter function for covariance matrix.

function get_NNUC

inline size_t get_NNUC() const

Global parameter in AlterBBN; holds number of computed element abundances.

function get_abund_map

inline const std::map< std::string, int > & get_abund_map() const

Getter for map from isotope names to position in BBN_abundance vector.

function get_BBN_abund

inline double get_BBN_abund(
    int pos
) const

Getter for abundance.

function get_BBN_abund_upper

inline double get_BBN_abund_upper(
    int pos
) const

function get_BBN_abund_lower

inline double get_BBN_abund_lower(
    int pos
) const

function get_BBN_abund

inline double get_BBN_abund(
    str iso
) const

Getter for abundance.

function get_BBN_abund_upper

inline double get_BBN_abund_upper(
    str iso
) const

function get_BBN_abund_lower

inline double get_BBN_abund_lower(
    str iso
) const

function get_BBN_covmat

inline double get_BBN_covmat(
    int row,
    int col
) const

Getter for covariance matrix.

function set_active_isotopes

inline void set_active_isotopes(
    std::set< str > isos
)

Setter for active isotopes.

function get_active_isotopes

inline const std::set< str > & get_active_isotopes() const

Getter for active isotopes.

function get_active_isotope_indices

inline const std::set< int > & get_active_isotope_indices() const

Getter for indices of active isotopes in BBN_abundance vector.

function has_BBN_abund_upper

inline bool has_BBN_abund_upper() const

Check whether there is any non-zero upper or lower abundance.

function has_BBN_abund_lower

inline bool has_BBN_abund_lower() const

Updated on 2023-06-26 at 21:36:50 +0000