Skip to content

Commit

Permalink
Extra pythran annotation for i686 support
Browse files Browse the repository at this point in the history
Bug spotted on Fedora, see https://src.fedoraproject.org/rpms/scipy/pull-request/22

The `int[::]` annotation is used to accept non-contiguous views.
  • Loading branch information
serge-sans-paille committed Jul 18, 2021
1 parent f91728a commit c19bf22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scipy/optimize/_group_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def group_dense(m, n, A):

#pythran export group_sparse(int, int, intc[], intc[])
#pythran export group_sparse(int, int, int[], int[])
#pythran export group_sparse(int, int, intc[::], intc[::])
#pythran export group_sparse(int, int, int[::], int[::])
def group_sparse(m, n, indices, indptr):
groups = -np.ones(n, dtype=np.intp)
current_group = 0
Expand Down
1 change: 1 addition & 0 deletions scipy/signal/_max_len_seq_inner.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import numpy as np

#pythran export _max_len_seq_inner(intp[], int8[], int, int, int8[])
#pythran export _max_len_seq_inner(int[], int8[], int, int, int8[])

# Fast inner loop of max_len_seq.
def _max_len_seq_inner(taps, state, nbits, length, seq):
Expand Down

0 comments on commit c19bf22

Please sign in to comment.