Skip to content

Commit

Permalink
Added a non-const overload DelayedTranspose constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Dec 19, 2024
1 parent c11653e commit e9f64c0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/tatami/other/DelayedTranspose.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ template<typename Value_, typename Index_>
class DelayedTranspose : public Matrix<Value_, Index_> {
public:
/**
* @param matrix Pointer to the underlying (pre-transpose) matrix.
* @param matrix Pointer to the matrix to be transposed.
*/
DelayedTranspose(std::shared_ptr<const Matrix<Value_, Index_> > matrix) : my_matrix(std::move(matrix)) {}

/**
* @param matrix Pointer to the matrix to be transposed.
*/
DelayedTranspose(std::shared_ptr<Matrix<Value_, Index_> > matrix) : my_matrix(std::move(matrix)) {}

private:
std::shared_ptr<const Matrix<Value_, Index_> > my_matrix;

Expand Down

0 comments on commit e9f64c0

Please sign in to comment.