Skip to content
Snippets Groups Projects
Verified Commit 600ea820 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

debug

parent 450808ca
Branches
Tags
No related merge requests found
......@@ -62,16 +62,16 @@ FIND_NUMPY()
IF(WIN32)
LINK_DIRECTORIES(${PYTHON_LIBRARY_DIRS})
# Set default Windows build paths
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY
${PROJECT_BINARY_DIR}/Bin
CACHE PATH "Single directory for all libraries")
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
${PROJECT_BINARY_DIR}/Bin
CACHE PATH "Single directory for all executables")
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY
${PROJECT_BINARY_DIR}/Bin
CACHE PATH "Sing$le directory for all archives")
# # Set default Windows build paths
# SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY
# ${PROJECT_BINARY_DIR}/Bin
# CACHE PATH "Single directory for all libraries")
# SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
# ${PROJECT_BINARY_DIR}/Bin
# CACHE PATH "Single directory for all executables")
# SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY
# ${PROJECT_BINARY_DIR}/Bin
# CACHE PATH "Sing$le directory for all archives")
ENDIF(WIN32)
# ----------------------------------------------------
......
......@@ -9,6 +9,8 @@
#include "eigenpy/numpy-type.hpp"
#include "eigenpy/register.hpp"
#include <iostream>
namespace eigenpy
{
/// \brief Default cast algo to cast a From to To. Can be specialized for any types.
......@@ -256,6 +258,11 @@ namespace eigenpy
assert(to_typenum >= 0 && "to_typenum is not valid");
assert(from_array_descr != NULL && "from_array_descr is not valid");
std::cout << "From: " << bp::type_info(typeid(From)).name() << " " << Register::getTypeCode<From>()
<< " to: " << bp::type_info(typeid(To)).name() << " " << Register::getTypeCode<To>()
<< "\n to_typenum: " << to_typenum
<< std::endl;
if(call_PyArray_RegisterCastFunc(from_array_descr,
to_typenum,
static_cast<PyArray_VectorUnaryFunc *>(&eigenpy::internal::cast<From,To>)) < 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment