Top "Eigen" questions

Eigen is a C++ template library for linear algebra: matrices, vectors, and related algorithms.

eigen: Subtracting a scalar from a vector

I am having an error when using the Eigen library and all I am trying to do is subtract a …

c++ eigen
How to compare vectors approximately in Eigen?

Is there a function in Eigen to compare vectors (matrices) using both relative and absolute tolerance aka numpy.allclose? Standard …

c++ linear-algebra eigen
How do I compute the absolute value of a vector in Eigen?

How do I compute the absolute value of a vector in Eigen? Since the obvious way Eigen::VectorXf v(-1.0,…

c++ eigen absolute-value
How to convert sparse matrix to dense matrix in Eigen

Is there some easy and fast way to convert a sparse matrix to a dense matrix of doubles? Because my …

c++ matrix sparse-matrix eigen
C++ Eigen initialize static matrix

Is it possible to initialize a static eigen matrix4d in a header file? I want to use it as …

c++ eigen
sort eigen vectorXf in ascending order

I'm trying to sort an Eigen VectorXf x in ascending order. This sorts it in descending order: std::sort(x.…

c++ eigen
Using Eigen Library in ROS Indigo

I am working on a project in ROS Indigo that requires using the Eigen libraries. According to indigo/Migration page …

cmake eigen ros
(Pseudo)-Inverse of N by N matrix with zero determinant

I would like to take the inverse of a nxn matrix to use in my GraphSlam. The issues that I …

c++ matrix lapack eigen slam-algorithm
Combining multiple transformations in Eigen into one transformation matrix

I have several transformations in Eigen, in the form of translations (Eigen::Vector3f) and rotations (Eigen::Quaternionf). I would …

c++ transformation eigen quaternions affinetransform
How to convert row vector to column vector in Eigen?

The documentation says: ... in Eigen, vectors are just a special case of matrices, with either 1 row or 1 column. The case …

c++ eigen