Skip to content

Commit

Permalink
prototype implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed May 17, 2024
1 parent cc620e1 commit 601aa75
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/amici/backwardproblem.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ class BackwardProblem {
*/
AmiVector const& getAdjointState() const { return xB_; }

/**
* @brief Accessor for dxB
* @return xB
*/
AmiVector const& getAdjointStateDerivative() const { return dxB_; }

/**
* @brief Accessor for xQB
* @return xQB
Expand Down
6 changes: 6 additions & 0 deletions include/amici/edata.h
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,12 @@ class ExpData : public SimulationParameters {
std::vector<realtype> const& input, char const* fieldname
) const;

/**
* @brief check whether this instance implements only equilibration
* without simulation
*/
bool isEquilibration() const;

/** @brief number of observables */
int nytrue_{0};

Expand Down
5 changes: 5 additions & 0 deletions src/edata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,11 @@ void ExpData::checkEventsDimension(
);
}

bool ExpData::isEquilibration() const {
return ts_.size() == 1 && std::isinf(ts_[0]);
}


void checkSigmaPositivity(
std::vector<realtype> const& sigmaVector, char const* vectorName
) {
Expand Down

0 comments on commit 601aa75

Please sign in to comment.