#4206: [with patch, needs work] convert RDF and CDF vectors to use numpy
----------------------------+-----------------------------------------------
Reporter: jason | Owner: jason
Type: enhancement | Status: assigned
Priority: major | Milestone: sage-3.2.2
Component: linear algebra | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by was):
* summary: [with patch, needs review] convert RDF and CDF vectors to use
numpy => [with patch, needs work] convert RDF
and CDF vectors to use numpy
Comment:
I was unable to build this after applying it to sage-3.2.2.alpha0:
{{{
building 'sage.rings.polynomial.real_roots' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
-fPIC -I/home/was/build/sage-3.2.2.alpha0/local//include
-I/home/was/build/sage-3.2.2
.alpha0/local//include/csage
-I/home/was/build/sage-3.2.2.alpha0/devel//sage/sage/ext
-I/home/was/build/sage-3.2.2.alpha0/local/include/python2.5 -c sage/rings/
polynomial/real_roots.c -o
build/temp.linux-x86_64-2.5/sage/rings/polynomial/real_roots.o -w
sage/rings/polynomial/real_roots.c:119:31: error: numpy/arrayobject.h: No
such file or directory
sage/rings/polynomial/real_roots.c:388: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int8_t’
sage/rings/polynomial/real_roots.c:390: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int16_t’
sage/rings/polynomial/real_roots.c:392: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int32_t’
sage/rings/polynomial/real_roots.c:394: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int64_t’
sage/rings/polynomial/real_roots.c:396: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint8_t’
sage/rings/polynomial/real_roots.c:398: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint16_t’
sage/rings/polynomial/real_roots.c:400: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint32_t’
sage/rings/polynomial/real_roots.c:402: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint64_t’
sage/rings/polynomial/real_roots.c:404: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_float32_t’
sage/rings/polynomial/real_roots.c:406: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_float64_t’
sage/rings/polynomial/real_roots.c:408: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_int_t’
sage/rings/polynomial/real_roots.c:410: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_long_t’
sage/rings/polynomial/real_roots.c:412: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_uint_t’
sage/rings/polynomial/real_roots.c:414: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_ulong_t’
sage/rings/polynomial/real_roots.c:416: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_float_t’
sage/rings/polynomial/real_roots.c:418: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_double_t’
sage/rings/polynomial/real_roots.c:420: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_longdouble_t’
sage/rings/polynomial/real_roots.c:422: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_cfloat_t’
sage/rings/polynomial/real_roots.c:424: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_cdouble_t’
sage/rings/polynomial/real_roots.c:426: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘__pyx_t_5numpy_clongdouble_t’
sage/rings/polynomial/real_roots.c:998: error: field ‘_numpy_dtypeint’ has
incomplete type
sage/rings/polynomial/real_roots.c:1002: error: expected specifier-
qualifier-list before ‘PyArrayObject’
sage/rings/polynomial/real_roots.c:2274: error: expected declaration
specifiers or ‘...’ before ‘PyArrayObject’
}}}
This is on 64-bit sage.math.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4206#comment:35>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---