From eb1d8659177558d8469c0075a231ea4b5d1d13a5 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Fri, 5 Jan 2024 15:01:28 -0500 Subject: [PATCH] names for writer block arguments --- src/stan/callbacks/unique_stream_writer.hpp | 4 ++-- src/stan/callbacks/writer.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stan/callbacks/unique_stream_writer.hpp b/src/stan/callbacks/unique_stream_writer.hpp index ebc000c15f..13c6f83c31 100644 --- a/src/stan/callbacks/unique_stream_writer.hpp +++ b/src/stan/callbacks/unique_stream_writer.hpp @@ -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, -1, 1, true>) { + const Eigen::Block, -1, 1, true>& values) { if (output_ == nullptr) return; Eigen::IOFormat CommaInitFmt(Eigen::StreamPrecision, Eigen::DontAlignCols, @@ -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, 1, -1, true>) { + const Eigen::Block, 1, -1, true>& values) { if (output_ == nullptr) return; Eigen::IOFormat CommaInitFmt(Eigen::StreamPrecision, Eigen::DontAlignCols, diff --git a/src/stan/callbacks/writer.hpp b/src/stan/callbacks/writer.hpp index e50488c6ed..4f6c77b0b6 100644 --- a/src/stan/callbacks/writer.hpp +++ b/src/stan/callbacks/writer.hpp @@ -87,7 +87,7 @@ class writer { * @param[in] v Values in a block representing an Eigen column vector */ virtual void operator()( - const Eigen::Block, -1, 1, true>) {} + const Eigen::Block, -1, 1, true>& values) {} /** * Writes a set of values in csv format followed by a newline. @@ -98,7 +98,7 @@ class writer { * @param[in] v Values in a block representing an Eigen row vector */ virtual void operator()( - const Eigen::Block, 1, -1, true>) {} + const Eigen::Block, 1, -1, true>& values) {} }; } // namespace callbacks