Skip to content

Commit 4400913

Browse files
committed
Updates for the latest tatami libraries.
1 parent 519e9dd commit 4400913

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

package/src/clrm1.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ void compute(const tatami::Matrix<Value_, Index_>& matrix, const Options& option
7070

7171
tatami_stats::sums::Options sopt;
7272
sopt.num_threads = options.num_threads;
73-
auto logmat = tatami::make_DelayedUnaryIsometricOperation<Output_>(std::move(ptr), tatami::DelayedUnaryIsometricLog1p<Value_, Output_>());
74-
tatami_stats::sums::apply(false, logmat.get(), output, sopt);
73+
tatami::DelayedUnaryIsometricOperation<Output_, Value_, Index_> logmat(std::move(ptr), std::make_shared<tatami::DelayedUnaryIsometricLog1p<Value_, Output_, Index_> >());
74+
tatami_stats::sums::apply(false, logmat, output, sopt);
7575

76-
Output_ denom = 1.0/(logmat->nrow());
76+
Output_ denom = 1.0/(logmat.nrow());
7777
Index_ NC = matrix.ncol();
7878
for (Index_ c = 0; c < NC; ++c) {
7979
output[c] = std::expm1(output[c] * denom);

0 commit comments

Comments
 (0)