# HG changeset patch
# User Jason Grout <jason-sage@creativetrax.com>
# Date 1228812059 21600
# Node ID 63eb9b2e1e4490a54a81a3f88cfd9020e66c5bd8
# Parent 15d931d55fe1d4e76bb90e5a197e8f0cdcae46f5
Fixed a 64-bit issue with ints and numpy C API.
diff -r 15d931d55fe1 -r 63eb9b2e1e44 sage/finance/time_series.pyx
|
a
|
b
|
|
| 1858 | 1858 | [20.0000, -3.0000, 4.5000, -2.0000] |
| 1859 | 1859 | """ |
| 1860 | 1860 | cnumpy.import_array() #This must be called before using the numpy C/api or you will get segfault |
| 1861 | | cdef int dims[1] |
| | 1861 | cdef cnumpy.npy_intp dims[1] |
| 1862 | 1862 | dims[0] = self._length |
| 1863 | 1863 | cdef cnumpy.ndarray n = cnumpy.PyArray_SimpleNewFromData(1, dims, cnumpy.NPY_DOUBLE, self._values) |
| 1864 | 1864 | if copy: |