GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — BUG: Handle ``iso_c_type`` mappings more consistently by charris · Pull Request #25480 · numpy/numpy

BUG: Handle iso_c_type mappings more consistently #25480

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
charris merged 9 commits into numpy:maintenance/1.26.x from charris:backport-25226
Dec 23, 2023

Uh oh!

There was an error while loading. Please reload this page.

Merged

BUG: Handle iso_c_type mappings more consistently #25480

Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit Hold shift + click to select a range
3e6606e
TST: Add one for gh-25207
HaoZeke Nov 22, 2023
d7e78b6
BUG: Work with the ISOC_BINDINGS more consisently
HaoZeke Nov 22, 2023
47dfd65
MAINT: Kill now unused deep-merge [f2py]
HaoZeke Nov 22, 2023
05d161f
ENH: Populate all maps for iso_c bindings
HaoZeke Nov 22, 2023
1e127aa
MAINT: Correctly return mapped types [f2py]
HaoZeke Nov 22, 2023
62676de
DOC: Add a note on the iso_c2py_map implementation
HaoZeke Nov 22, 2023
2368305
MAINT: Reduce chatter to pass tests
HaoZeke Nov 22, 2023
599e427
BUG: Map to types with bindings [f2py]
HaoZeke Nov 26, 2023
da7713d
TST: Add a another test for gh-25207
HaoZeke Nov 26, 2023
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
TST: Add a another test for gh-25207
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@HaoZeke @charris
HaoZeke authored and charris committed Dec 23, 2023
commit da7713d32cf8406bf473bdcf86fa378740006a54

There are no files selected for viewing

11 changes: 11 additions & 0 deletions 11 numpy/f2py/tests/src/isocintrin/isoCtests.f90
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,15 @@ subroutine c_add_int64(a, b, c) bind(c)
integer(c_int64_t), intent(out) :: c
c = a + b
end subroutine c_add_int64
! gh-25207
subroutine add_arr(A, B, C)
integer(c_int64_t), intent(in) :: A(3)
integer(c_int64_t), intent(in) :: B(3)
integer(c_int64_t), intent(out) :: C(3)
integer :: j

do j = 1, 3
C(j) = A(j)+B(j)
end do
end subroutine
end module coddity
10 changes: 10 additions & 0 deletions 10 numpy/f2py/tests/test_isoc.py
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from . import util
import numpy as np
import pytest
from numpy.testing import assert_allclose

class TestISOC(util.F2PyTest):
sources = [
Expand All @@ -24,6 +26,14 @@ def test_bindc_kinds(self):
exp_out = 21
assert out == exp_out

# gh-25207
def test_bindc_add_arr(self):
a = np.array([1,2,3])
b = np.array([1,2,3])
out = self.module.coddity.add_arr(a, b)
exp_out = a*2
assert_allclose(out, exp_out)


def test_process_f2cmap_dict():
from numpy.f2py.auxfuncs import process_f2cmap_dict
Expand Down
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.