Registered Member
|
The following code concatenates a vector of ones to a matrix:
The function copies the contents of X to Y. How do I define the function so that it avoids doing the copy and returns a reference to a matrix containing VectorXd::Ones(n), X? Thanks. |
Moderator
|
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]