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 -

c# - Retrieve google contact -

javascript - How to insert selected radio button value into table cell -