Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions stan/math/prim/meta/holder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ class Holder
auto* data() { return m_arg.data(); }
const auto* data() const { return m_arg.data(); }

const auto& coeffRef(Eigen::Index row, Eigen::Index col) const {
return m_arg.coeffRef(row, col);
}
const auto& coeffRef(Eigen::Index index) const {
return m_arg.coeffRef(index);
}

/**
* Assignment operator assigns expressions.
* @param other expression to assign to this
Expand Down