BioCMAMC-ST
proxy_cache.hpp
1#ifndef __CMA_UTILS_PROXY_CACHE_HPP__
2#define __CMA_UTILS_PROXY_CACHE_HPP__
3
4#include <Eigen/Core>
5#include <Eigen/Dense>
6#include <Eigen/Sparse>
7#include <cma_read/light_2d_view.hpp>
8#include <cma_read/reactorstate.hpp>
9#include <cma_utils/cache_hydro_state.hpp>
10
11#include <vector>
12
13namespace CmaUtils
14{
20 {
21 public:
26 void set_transition_matrix(const CmaRead::FlowMap::FlowMap_const_view_t& flows_view);
27
32 void set_transition_matrix(FlowMatrixType&& matrix);
33
38 void set_cumulative_probability(const CmaRead::Neighbors::Neighbors_const_view_t& neighbors);
39
44 void set_diag_transition(std::vector<double>&& diag);
45
48 };
49} // namespace CmaUtils
50
51#endif
Structure to store hydrodynamic properties from a compartment mesh.
Definition cache_hydro_state.hpp:40
Proxy class for PreCalculatedHydroState used to fill this struct with data from an external library.
Definition proxy_cache.hpp:20
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:28
void set_diag_transition(std::vector< double > &&diag)
Set the diagonal elements of the transition matrix.
Definition proxy_cache.cpp:6
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
Instance of PreCalculatedHydroState containing the filled data.
Definition proxy_cache.hpp:47
Namespace to handle algorithms and structures related to reading compartment mesh.
Definition host_specific.hpp:17