History

python/{ext,lib}: prepare for double precision

Paul Brossier committed 10 years ago

Commit c6388f41 parent 81984a76 files · +25 −19Browse files

Showing the changes to python/ext/py-cvec.c (1 of 6 files). Show all

Unified · Split

python/ext/py-cvec.c+2−2
@@ -93,7 +93,7 @@ PyObject * · 92 unmodified lines
9393 PyAubio_CvecNormToArray (Py_cvec * self)
9494 {
9595 npy_intp dims[] = { self->o->length, 1 };
96− return PyArray_SimpleNewFromData (1, dims, NPY_FLOAT, self->o->norm);
96+ return PyArray_SimpleNewFromData (1, dims, AUBIO_NPY_SMPL, self->o->norm);
9797 }
9898
9999
@@ -101,7 +101,7 @@ PyObject * · 1 unmodified line
101101 PyAubio_CvecPhasToArray (Py_cvec * self)
102102 {
103103 npy_intp dims[] = { self->o->length, 1 };
104− return PyArray_SimpleNewFromData (1, dims, NPY_FLOAT, self->o->phas);
104+ return PyArray_SimpleNewFromData (1, dims, AUBIO_NPY_SMPL, self->o->phas);
105105 }
106106
107107 PyObject *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t