Skip to content

Commit

Permalink
Bugfix for non-int types of Index_.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Dec 21, 2024
1 parent b809221 commit 4084070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.14)

project(scran_pca
VERSION 0.1.0
VERSION 0.1.1
DESCRIPTION "Principal components analysis for single-cell data"
LANGUAGES CXX)

Expand Down
2 changes: 1 addition & 1 deletion include/scran_pca/simple_pca.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ void compute_row_means_and_variances(const tatami::Matrix<Value_, Index_>& mat,
tatami::parallelize([&](size_t t, Index_ start, Index_ length) -> void {
tatami::Options opt;
auto ncells = mat.ncol();
auto ext = tatami::consecutive_extractor<sparse_>(&mat, false, 0, ncells, start, length, opt);
auto ext = tatami::consecutive_extractor<sparse_>(&mat, false, static_cast<Index_>(0), ncells, start, length, opt);

typedef typename EigenVector_::Scalar Scalar;
tatami_stats::LocalOutputBuffer<Scalar> cbuffer(t, start, length, center_v.data());
Expand Down

0 comments on commit 4084070

Please sign in to comment.