diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2017-11-21 13:37:53 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2017-11-21 13:37:53 -0500 |
| commit | 2b9717d686fca225f439d0ea3521522860fdfa90 (patch) | |
| tree | 36af03d0dac522d13f2887285e8c6b36190aa548 | |
| parent | 09d6f71b2f3ac388b1c1f690a67c15f0edce065d (diff) | |
| download | pyisda-2b9717d686fca225f439d0ea3521522860fdfa90.tar.gz | |
set F_CONTIGUOUS flag to True
| -rw-r--r-- | pyisda/credit_index.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyisda/credit_index.pyx b/pyisda/credit_index.pyx index 952557f..bdf9a6a 100644 --- a/pyisda/credit_index.pyx +++ b/pyisda/credit_index.pyx @@ -370,7 +370,7 @@ cdef class CreditIndex(CurveList): TDate start_date size_t i, j np.npy_intp[2] n = [self.curves.size(), schedule.shape[0]] - np.ndarray[np.float64_t,ndim=2] sp = np.PyArray_EMPTY(2, n, np.NPY_DOUBLE, 0) + np.ndarray[np.float64_t,ndim=2] sp = np.PyArray_EMPTY(2, n, np.NPY_DOUBLE, 1) j = 0 for sc in self.curves: start_date = sc.get().fBaseDate |
