Registered Member
|
Hi, I am trying to write a function that performs a write operation on an input parameter that can either be a vector or a row of a matrix as shown below. Could someone tell me why this code won't compile?
This is the error I get
However, if I only want read access to the vector in the function, I could use a const qualifier and everything compiles fine
It's probably not eigen, but a C++ thing. Any help would be appreciated. Thanks! Raman |
Moderator
|
That's indeed a C++ restriction. See this documentation page:
http://eigen.tuxfamily.org/dox/TopicFun ... Types.html and we are working on a more general solution there: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=482 |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]