~jtaylor/ubuntu/precise/python-numpy/multiarch-fix-818867

« back to all changes in this revision

Viewing changes to numpy/doc/cython/numpy.pxi

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik, Riku Voipio, Tiziano Zito, Carlos Galisteo, Ondrej Certik
  • Date: 2008-07-08 15:08:16 UTC
  • mfrom: (0.1.21 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080708150816-ekf992jcp2k1eua3
Tags: 1:1.1.0-3
[ Riku Voipio ]
* debian/control: atlas is not available on armel, and after a quick look
  neither on alpha. I'd also suggest dropping
  libatlas-sse-dev|libatlas-sse2-dev|libatlas-3dnow-dev alternative combo
  away, these are potentially dangerous on buildd's. Ondrej: dropped.
  (Closes: #489568)

[ Tiziano Zito ]
* patch: build _dotblas.c when ATLAS is not installed, build-conflict with
  atlas, build-depend on blas+lapack only, as it used to be (Closes: #489726)

[ Carlos Galisteo ]
* debian/control
  - Added Homepage field.

[ Ondrej Certik ]
* Checked the package on i386 and amd64, both with and without atlas, all
  tests run and the numpy package is faster if atlas is around. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# :Author:    Travis Oliphant
 
2
 
 
3
cdef extern from "numpy/arrayobject.h":
 
4
 
 
5
    cdef enum NPY_TYPES:
 
6
        NPY_BOOL
 
7
        NPY_BYTE
 
8
        NPY_UBYTE
 
9
        NPY_SHORT
 
10
        NPY_USHORT 
 
11
        NPY_INT
 
12
        NPY_UINT 
 
13
        NPY_LONG
 
14
        NPY_ULONG
 
15
        NPY_LONGLONG
 
16
        NPY_ULONGLONG
 
17
        NPY_FLOAT
 
18
        NPY_DOUBLE 
 
19
        NPY_LONGDOUBLE
 
20
        NPY_CFLOAT
 
21
        NPY_CDOUBLE
 
22
        NPY_CLONGDOUBLE
 
23
        NPY_OBJECT
 
24
        NPY_STRING
 
25
        NPY_UNICODE
 
26
        NPY_VOID
 
27
        NPY_NTYPES
 
28
        NPY_NOTYPE
 
29
 
 
30
    cdef enum requirements:
 
31
        NPY_CONTIGUOUS
 
32
        NPY_FORTRAN
 
33
        NPY_OWNDATA
 
34
        NPY_FORCECAST
 
35
        NPY_ENSURECOPY
 
36
        NPY_ENSUREARRAY
 
37
        NPY_ELEMENTSTRIDES
 
38
        NPY_ALIGNED
 
39
        NPY_NOTSWAPPED
 
40
        NPY_WRITEABLE
 
41
        NPY_UPDATEIFCOPY
 
42
        NPY_ARR_HAS_DESCR
 
43
 
 
44
        NPY_BEHAVED
 
45
        NPY_BEHAVED_NS
 
46
        NPY_CARRAY
 
47
        NPY_CARRAY_RO
 
48
        NPY_FARRAY
 
49
        NPY_FARRAY_RO
 
50
        NPY_DEFAULT
 
51
 
 
52
        NPY_IN_ARRAY
 
53
        NPY_OUT_ARRAY
 
54
        NPY_INOUT_ARRAY
 
55
        NPY_IN_FARRAY
 
56
        NPY_OUT_FARRAY
 
57
        NPY_INOUT_FARRAY
 
58
 
 
59
        NPY_UPDATE_ALL 
 
60
 
 
61
    cdef enum defines:
 
62
        NPY_MAXDIMS
 
63
 
 
64
    ctypedef struct npy_cdouble:
 
65
        double real
 
66
        double imag
 
67
 
 
68
    ctypedef struct npy_cfloat:
 
69
        double real
 
70
        double imag
 
71
 
 
72
    ctypedef int npy_intp 
 
73
 
 
74
    ctypedef extern class numpy.dtype [object PyArray_Descr]:
 
75
        cdef int type_num, elsize, alignment
 
76
        cdef char type, kind, byteorder, hasobject
 
77
        cdef object fields, typeobj
 
78
 
 
79
    ctypedef extern class numpy.ndarray [object PyArrayObject]:
 
80
        cdef char *data
 
81
        cdef int nd
 
82
        cdef npy_intp *dimensions
 
83
        cdef npy_intp *strides
 
84
        cdef object base
 
85
        cdef dtype descr
 
86
        cdef int flags
 
87
 
 
88
    ctypedef extern class numpy.flatiter [object PyArrayIterObject]:
 
89
        cdef int  nd_m1
 
90
        cdef npy_intp index, size
 
91
        cdef ndarray ao
 
92
        cdef char *dataptr
 
93
        
 
94
    ctypedef extern class numpy.broadcast [object PyArrayMultiIterObject]:
 
95
        cdef int numiter
 
96
        cdef npy_intp size, index
 
97
        cdef int nd
 
98
        cdef npy_intp *dimensions
 
99
        cdef void **iters
 
100
 
 
101
    object PyArray_ZEROS(int ndims, npy_intp* dims, NPY_TYPES type_num, int fortran)
 
102
    object PyArray_EMPTY(int ndims, npy_intp* dims, NPY_TYPES type_num, int fortran)
 
103
    dtype PyArray_DescrFromTypeNum(NPY_TYPES type_num)
 
104
    object PyArray_SimpleNew(int ndims, npy_intp* dims, NPY_TYPES type_num)
 
105
    int PyArray_Check(object obj)
 
106
    object PyArray_ContiguousFromAny(object obj, NPY_TYPES type, 
 
107
        int mindim, int maxdim)
 
108
    object PyArray_ContiguousFromObject(object obj, NPY_TYPES type, 
 
109
        int mindim, int maxdim)
 
110
    npy_intp PyArray_SIZE(ndarray arr)
 
111
    npy_intp PyArray_NBYTES(ndarray arr)
 
112
    void *PyArray_DATA(ndarray arr)
 
113
    object PyArray_FromAny(object obj, dtype newtype, int mindim, int maxdim,
 
114
                    int requirements, object context)
 
115
    object PyArray_FROMANY(object obj, NPY_TYPES type_num, int min,
 
116
                           int max, int requirements)
 
117
    object PyArray_NewFromDescr(object subtype, dtype newtype, int nd,
 
118
                                npy_intp* dims, npy_intp* strides, void* data,
 
119
                                int flags, object parent)
 
120
 
 
121
    object PyArray_FROM_OTF(object obj, NPY_TYPES type, int flags)
 
122
    object PyArray_EnsureArray(object)
 
123
 
 
124
    object PyArray_MultiIterNew(int n, ...)
 
125
 
 
126
    char *PyArray_MultiIter_DATA(broadcast multi, int i)
 
127
    void PyArray_MultiIter_NEXTi(broadcast multi, int i) 
 
128
    void PyArray_MultiIter_NEXT(broadcast multi)
 
129
 
 
130
    object PyArray_IterNew(object arr)
 
131
    void PyArray_ITER_NEXT(flatiter it)
 
132
 
 
133
    void import_array()