eigen3 - Convert to inHomogeneous cordinates Eigen::MatrixXf -


i have 3x1000 matrix eigen::matrixxf. need divide matrix 3rd row.

a(0,:) = a(0,:) / a(2,:) a(1,:) = a(1,:) / a(2,:) a(2,:) = a(2,:) / a(2,:) 

how can perform operation in eigen. in particular cannot find componentwise division

use array:

a.array() /= a.array().col(2); 

for more information, see documentation.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -