Skip to content

Setting matrix values broken with cython 3.2 #5

@antonio-rojas

Description

@antonio-rojas

When compiled with cython 3.2, setting matrix entries is broken:

sage: from sage.libs.giac import libgiac
sage: A = libgiac([[1,2],[3,4]])
sage: A[0,0]=0
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[4], line 1
----> 1 A[Integer(0),Integer(0)]=Integer(0)

File giac.pyx:1014, in giac.Pygen.__setitem__()

TypeError: Expected bool, got int
sage: from sagemath_giac.giac import libgiac
sage: A = libgiac([[1,2],[3,4]])
sage: A[0,0]=0
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[7], line 1
----> 1 A[Integer(0),Integer(0)]=Integer(0)

File giac.pyx:1014, in giac.Pygen.__setitem__()

TypeError: Expected bool, got int

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions