Skip to content

how to write c++ functions that accept numpy arrays with custom numeric types exposed via EigenPy #380

Closed Answered by jcarpent
ofloveandhate asked this question in Q&A
Discussion options

You must be logged in to vote

Please look at this test

template <typename Scalar>
void print(const Eigen::Matrix<CustomType<Scalar>, Eigen::Dynamic,
Eigen::Dynamic>& mat) {
std::cout << mat << std::endl;
}

Replies: 10 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jcarpent
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jcarpent
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ofloveandhate
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #378 on July 07, 2023 07:58.