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
93PyAubio_CvecNormToArray (Py_cvec * self)93PyAubio_CvecNormToArray (Py_cvec * self)
94{94{
95 npy_intp dims[] = { self->o->length, 1 };95 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);
97}97}
98 98
99 99
@@ -101,7 +101,7 @@ PyObject * · 1 unmodified line
101PyAubio_CvecPhasToArray (Py_cvec * self)101PyAubio_CvecPhasToArray (Py_cvec * self)
102{102{
103 npy_intp dims[] = { self->o->length, 1 };103 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);
105}105}
106 106
107PyObject *107PyObject *

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