Skip to content

Commit

Permalink
names for writer block arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Jan 5, 2024
1 parent e14b330 commit eb1d865
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/stan/callbacks/unique_stream_writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ class unique_stream_writer final : public writer {
* @param[in] v Values in a block representing an Eigen column vector
*/
virtual void operator()(
const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>) {
const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>& values) {
if (output_ == nullptr)
return;
Eigen::IOFormat CommaInitFmt(Eigen::StreamPrecision, Eigen::DontAlignCols,
Expand All @@ -153,7 +153,7 @@ class unique_stream_writer final : public writer {
* @param[in] v Values in a block representing an Eigen row vector
*/
virtual void operator()(
const Eigen::Block<Eigen::Matrix<double, -1, -1>, 1, -1, true>) {
const Eigen::Block<Eigen::Matrix<double, -1, -1>, 1, -1, true>& values) {
if (output_ == nullptr)
return;
Eigen::IOFormat CommaInitFmt(Eigen::StreamPrecision, Eigen::DontAlignCols,
Expand Down
4 changes: 2 additions & 2 deletions src/stan/callbacks/writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class writer {
* @param[in] v Values in a block representing an Eigen column vector
*/
virtual void operator()(
const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>) {}
const Eigen::Block<Eigen::Matrix<double, -1, -1>, -1, 1, true>& values) {}

/**
* Writes a set of values in csv format followed by a newline.
Expand All @@ -98,7 +98,7 @@ class writer {
* @param[in] v Values in a block representing an Eigen row vector
*/
virtual void operator()(
const Eigen::Block<Eigen::Matrix<double, -1, -1>, 1, -1, true>) {}
const Eigen::Block<Eigen::Matrix<double, -1, -1>, 1, -1, true>& values) {}
};

} // namespace callbacks
Expand Down

0 comments on commit eb1d865

Please sign in to comment.