#15820: Implement sequences of bounded integers
-------------------------------------+-------------------------------------
Reporter: SimonKing | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: algebra | Resolution:
Keywords: sequence bounded | Merged in:
integer | Reviewers:
Authors: Simon King | Work issues: memory corruption
Report Upstream: N/A | Commit:
Branch: | b331dc4f12e7291e9537f607ed155085cabc3fcd
u/SimonKing/ticket/15820 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by SimonKing):
Hmm. Using, for example,
{{{
#!python
cdef mp_limb_t tmp_limb[1]
}}}
instead of
{{{
#!python
cdef mp_limb_t *tmp_limb
tmp_limb = <mp_limb_t*>sage_malloc(sizeof(mp_limb_t))
}}}
compiles, but then it seems that the `mpn_*` functions do not correctly
put values into the arrays, when I give them `tmp_limb` as argument.
Question to C/Cython experts: Is `tmp_limb` not just of type
`<mp_limb_t*>` when I define `cdef mp_limb_t tmp_limb[1]`?
--
Ticket URL: <http://trac.sagemath.org/ticket/15820#comment:119>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.