Member function in Eigen math library for vector magnitude September 1, 2023 by Tarik You want .norm(). Note that there’s also .squaredNorm(), .normalized() and .normalize().