BioCMAMC-ST
proxy_cache.hpp
1#ifndef __CMA_UTILS_PROXY_CACHE_HPP__
2#define __CMA_UTILS_PROXY_CACHE_HPP__
3
4#ifndef NDEBUG
5# pragma GCC diagnostic push
6# pragma GCC diagnostic ignored "-Wunused-but-set-variable"
7# pragma GCC diagnostic ignored "-Wnan-infinity-disabled"
8#endif
9#include <Eigen/Core>
10#include <Eigen/Dense>
11#include <Eigen/Sparse>
12#ifndef NDEBUG
13# pragma GCC diagnostic pop
14#endif
15#include <cma_read/light_2d_view.hpp>
16#include <cma_read/reactorstate.hpp>
17#include <cma_utils/cache_hydro_state.hpp>
18
19#include <vector>
20
21namespace CmaUtils
22{
28 {
29 public:
35 const CmaRead::FlowMap::FlowMap_const_view_t& flows_view);
36
42 void set_transition_matrix(FlowMatrixType&& matrix);
43
49 const CmaRead::Neighbors::Neighbors_const_view_t& neighbors);
50
56 void set_diag_transition(std::vector<double>&& diag);
57
60 };
61} // namespace CmaUtils
62
63#endif
Structure to store hydrodynamic properties from a compartment mesh.
Definition cache_hydro_state.hpp:56
Proxy class for PreCalculatedHydroState used to fill this struct with data from an external library.
Definition proxy_cache.hpp:28
void set_cumulative_probability(const CmaRead::Neighbors::Neighbors_const_view_t &neighbors)
Set the cumulative probability using a constant neighbors view.
Definition proxy_cache.cpp:29
void set_diag_transition(std::vector< double > &&diag)
Set the diagonal elements of the transition matrix.
Definition proxy_cache.cpp:7
void set_transition_matrix(const CmaRead::FlowMap::FlowMap_const_view_t &flows_view)
Set the transition matrix using a constant flow map view.
Definition proxy_cache.cpp:15
PreCalculatedHydroState state
Definition proxy_cache.hpp:58
Namespace to handle algorithms and structures related to reading compartment mesh.
Definition host_specific.hpp:18