diff --git a/fastcan/_cancorr_fast.pyx b/fastcan/_cancorr_fast.pyx index 3788e9d..e761de7 100644 --- a/fastcan/_cancorr_fast.pyx +++ b/fastcan/_cancorr_fast.pyx @@ -169,11 +169,12 @@ cpdef int _forward_search( """ cdef: unsigned int n_samples = X.shape[0] - unsigned int n_features = X.shape[1] + # OpenMP (in Windows) requires signed integral for prange + int j, n_features = X.shape[1] floating* r2 = malloc(sizeof(floating) * n_features) bint* mask = malloc(sizeof(bint) * n_features) floating g, ssc = 0.0 - unsigned int i, j + unsigned int i int index = -1 memset(&r2[0], 0, n_features * sizeof(floating)) diff --git a/meson.build b/meson.build index 8dc8b54..dc5adfd 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'fastcan', 'c', 'cython', - version: '0.2.2', + version: '0.2.3', license: 'MIT', meson_version: '>= 1.1.0', default_options: [ diff --git a/pixi.lock b/pixi.lock index 96c1c69..845937b 100644 --- a/pixi.lock +++ b/pixi.lock @@ -1520,9 +1520,9 @@ packages: timestamp: 1720869435725 - kind: pypi name: fastcan - version: 0.2.2 + version: 0.2.3 path: . - sha256: e68d895181c7c80c180d4b519639df7b7a36ff9c28d6c81a2f01f01ecdc91b80 + sha256: ed6b2844d1cbe6eaae8d61cbef92e65395146733f966d99939a1261056423935 requires_dist: - scikit-learn>=1.5.0,<1.6 - furo ; extra == 'doc' diff --git a/pyproject.toml b/pyproject.toml index 3cccde5..0da2aea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "fastcan" -version = "0.2.2" +version = "0.2.3" description = "A fast canonical-correlation-based feature selection method" authors = [ { name = "Matthew Sikai Zhang", email = "matthew.szhang91@gmail.com" },