comparison PyTypeConversions.h @ 72:ffaa1fb3d7de vampyhost

inline is not a useful keyword with contemporary compilers
author Chris Cannam
date Mon, 24 Nov 2014 09:50:49 +0000
parents 40a01bb24209
children 76355b91cd92
comparison
equal deleted inserted replaced
71:40a01bb24209 72:ffaa1fb3d7de
134 } 134 }
135 return rValue; 135 return rValue;
136 } 136 }
137 137
138 /// this is a special case. numpy.float64 has an array conversions but no array descriptor 138 /// this is a special case. numpy.float64 has an array conversions but no array descriptor
139 inline std::vector<float> PyArray0D_Convert(PyArrayInterface *ai) const 139 std::vector<float> PyArray0D_Convert(PyArrayInterface *ai) const
140 { 140 {
141 std::vector<float> rValue; 141 std::vector<float> rValue;
142 if ((ai->typekind) == *"f") 142 if ((ai->typekind) == *"f")
143 rValue.push_back((float)*(double*)(ai->data)); 143 rValue.push_back((float)*(double*)(ai->data));
144 else { 144 else {