Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
38d63b74
Commit
38d63b74
authored
Apr 03, 2014
by
Tiago Peixoto
Browse files
Complete Numpy type table in numpy_bind.hh
parent
635e475b
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/graph/numpy_bind.hh
View file @
38d63b74
...
...
@@ -48,15 +48,20 @@ using namespace std;
typedef
boost
::
mpl
::
map
<
boost
::
mpl
::
pair
<
bool
,
boost
::
mpl
::
int_
<
NPY_BOOL
>
>
,
boost
::
mpl
::
pair
<
u
int8_t
,
boost
::
mpl
::
int_
<
NPY_
BYTE
>
>
,
boost
::
mpl
::
pair
<
uint
32
_t
,
boost
::
mpl
::
int_
<
NPY_UINT
32
>
>
,
boost
::
mpl
::
pair
<
int8_t
,
boost
::
mpl
::
int_
<
NPY_
INT8
>
>
,
boost
::
mpl
::
pair
<
uint
8
_t
,
boost
::
mpl
::
int_
<
NPY_UINT
8
>
>
,
boost
::
mpl
::
pair
<
int16_t
,
boost
::
mpl
::
int_
<
NPY_INT16
>
>
,
boost
::
mpl
::
pair
<
uint16_t
,
boost
::
mpl
::
int_
<
NPY_UINT16
>
>
,
boost
::
mpl
::
pair
<
int32_t
,
boost
::
mpl
::
int_
<
NPY_INT32
>
>
,
boost
::
mpl
::
pair
<
uint32_t
,
boost
::
mpl
::
int_
<
NPY_UINT32
>
>
,
boost
::
mpl
::
pair
<
int64_t
,
boost
::
mpl
::
int_
<
NPY_INT64
>
>
,
boost
::
mpl
::
pair
<
uint64_t
,
boost
::
mpl
::
int_
<
NPY_UINT64
>
>
,
boost
::
mpl
::
pair
<
unsigned
long
in
t
,
boost
::
mpl
::
int_
<
NPY_
U
LO
NG
>
>
,
boost
::
mpl
::
pair
<
floa
t
,
boost
::
mpl
::
int_
<
NPY_
F
LO
AT
>
>
,
boost
::
mpl
::
pair
<
double
,
boost
::
mpl
::
int_
<
NPY_DOUBLE
>
>
,
boost
::
mpl
::
pair
<
long
double
,
boost
::
mpl
::
int_
<
NPY_LONGDOUBLE
>
>
boost
::
mpl
::
pair
<
long
double
,
boost
::
mpl
::
int_
<
NPY_LONGDOUBLE
>
>
,
boost
::
mpl
::
pair
<
std
::
complex
<
float
>
,
boost
::
mpl
::
int_
<
NPY_CFLOAT
>
>
,
boost
::
mpl
::
pair
<
std
::
complex
<
double
>
,
boost
::
mpl
::
int_
<
NPY_CDOUBLE
>
>
,
boost
::
mpl
::
pair
<
std
::
complex
<
long
double
>
,
boost
::
mpl
::
int_
<
NPY_CLONGDOUBLE
>
>
>
numpy_types
;
template
<
class
ValueType
>
...
...
src/graph/numpy_bind_old.hh
View file @
38d63b74
...
...
@@ -36,15 +36,20 @@ using namespace std;
typedef
boost
::
mpl
::
map
<
boost
::
mpl
::
pair
<
bool
,
boost
::
mpl
::
int_
<
NPY_BOOL
>
>
,
boost
::
mpl
::
pair
<
u
int8_t
,
boost
::
mpl
::
int_
<
NPY_
BYTE
>
>
,
boost
::
mpl
::
pair
<
uint
32
_t
,
boost
::
mpl
::
int_
<
NPY_UINT
32
>
>
,
boost
::
mpl
::
pair
<
int8_t
,
boost
::
mpl
::
int_
<
NPY_
INT8
>
>
,
boost
::
mpl
::
pair
<
uint
8
_t
,
boost
::
mpl
::
int_
<
NPY_UINT
8
>
>
,
boost
::
mpl
::
pair
<
int16_t
,
boost
::
mpl
::
int_
<
NPY_INT16
>
>
,
boost
::
mpl
::
pair
<
uint16_t
,
boost
::
mpl
::
int_
<
NPY_UINT16
>
>
,
boost
::
mpl
::
pair
<
int32_t
,
boost
::
mpl
::
int_
<
NPY_INT32
>
>
,
boost
::
mpl
::
pair
<
uint32_t
,
boost
::
mpl
::
int_
<
NPY_UINT32
>
>
,
boost
::
mpl
::
pair
<
int64_t
,
boost
::
mpl
::
int_
<
NPY_INT64
>
>
,
boost
::
mpl
::
pair
<
uint64_t
,
boost
::
mpl
::
int_
<
NPY_UINT64
>
>
,
boost
::
mpl
::
pair
<
unsigned
long
in
t
,
boost
::
mpl
::
int_
<
NPY_
U
LO
NG
>
>
,
boost
::
mpl
::
pair
<
floa
t
,
boost
::
mpl
::
int_
<
NPY_
F
LO
AT
>
>
,
boost
::
mpl
::
pair
<
double
,
boost
::
mpl
::
int_
<
NPY_DOUBLE
>
>
,
boost
::
mpl
::
pair
<
long
double
,
boost
::
mpl
::
int_
<
NPY_LONGDOUBLE
>
>
boost
::
mpl
::
pair
<
long
double
,
boost
::
mpl
::
int_
<
NPY_LONGDOUBLE
>
>
,
boost
::
mpl
::
pair
<
std
::
complex
<
float
>
,
boost
::
mpl
::
int_
<
NPY_CFLOAT
>
>
,
boost
::
mpl
::
pair
<
std
::
complex
<
double
>
,
boost
::
mpl
::
int_
<
NPY_CDOUBLE
>
>
,
boost
::
mpl
::
pair
<
std
::
complex
<
long
double
>
,
boost
::
mpl
::
int_
<
NPY_CLONGDOUBLE
>
>
>
numpy_types
;
template
<
class
ValueType
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment