Skip to content

Commit af33941

Browse files
committed
MNT fix OpenMP (in Windows) requires signed integral for prange
1 parent 07f7f66 commit af33941

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

fastcan/_cancorr_fast.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,11 +169,12 @@ cpdef int _forward_search(
169169
"""
170170
cdef:
171171
unsigned int n_samples = X.shape[0]
172-
unsigned int n_features = X.shape[1]
172+
# OpenMP (in Windows) requires signed integral for prange
173+
int j, n_features = X.shape[1]
173174
floating* r2 = <floating*> malloc(sizeof(floating) * n_features)
174175
bint* mask = <bint*> malloc(sizeof(bint) * n_features)
175176
floating g, ssc = 0.0
176-
unsigned int i, j
177+
unsigned int i
177178
int index = -1
178179

179180
memset(&r2[0], 0, n_features * sizeof(floating))

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'fastcan',
33
'c', 'cython',
4-
version: '0.2.2',
4+
version: '0.2.3',
55
license: 'MIT',
66
meson_version: '>= 1.1.0',
77
default_options: [

pixi.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "fastcan"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "A fast canonical-correlation-based feature selection method"
55
authors = [
66
{ name = "Matthew Sikai Zhang", email = "matthew.szhang91@gmail.com" },

0 commit comments

Comments
 (0)