From e9f64c057c12c0c24c6b73134e9ed1332a92e473 Mon Sep 17 00:00:00 2001 From: LTLA Date: Thu, 19 Dec 2024 00:40:16 -0800 Subject: [PATCH] Added a non-const overload DelayedTranspose constructor. --- include/tatami/other/DelayedTranspose.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/tatami/other/DelayedTranspose.hpp b/include/tatami/other/DelayedTranspose.hpp index 45580832..5a8ba5fc 100644 --- a/include/tatami/other/DelayedTranspose.hpp +++ b/include/tatami/other/DelayedTranspose.hpp @@ -27,10 +27,15 @@ template class DelayedTranspose : public Matrix { public: /** - * @param matrix Pointer to the underlying (pre-transpose) matrix. + * @param matrix Pointer to the matrix to be transposed. */ DelayedTranspose(std::shared_ptr > matrix) : my_matrix(std::move(matrix)) {} + /** + * @param matrix Pointer to the matrix to be transposed. + */ + DelayedTranspose(std::shared_ptr > matrix) : my_matrix(std::move(matrix)) {} + private: std::shared_ptr > my_matrix;