Top "Eigen3" questions

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

Unable to find Eigen3 with CMake

I am kind of desperate: For my studies I need to work with Eigen and CMake. I'm able to use …

c++ cmake eigen3
How to extract a subvector (of an Eigen::Vector) from a vector of indices in Eigen?

Suppose I have Eigen::VectorXd x; //{1,2,3,4,5,6,7,8} and Eigen::VectorXd ind_vec; //{0,2,4,5} Is there a way an easy way to extract …

c++ eigen eigen3
Checking if all entries in the matrix are zero in Eigen Library

First of all, I'm not really sure if this is possible. I would like to check whether a matrix is …

c++ eigen3
How to efficiently extract real/imaginary parts of complex matrix in Eigen3 library?

I have some complex, dense vectors/matrices in the Eigen3 library, and I want to extract the real and imaginary …

c++ matlab eigen3
How can I calculate inverse of sparse matrix in Eigen library

I have a question about Eigen library in C++. Actually, I want to calculate inverse matrix of sparse matrix. When …

c++ matrix sparse-matrix eigen eigen3
Eigen matrix library filling a matrix with random float values in a given range

The setRandom function in the Eigen matrix library fills a given matrix with random numbers in the range [-1,1]. How …

c++ eigen eigen3
How to write/read an Eigen matrix from binary file

To write Eigen::Matrix to file I really like to use the following: typedef Eigen::Matrix<Scalar, Eigen::Dynamic, …

c++ matrix eigen3
Eigen - Check if matrix is Positive (Semi-)Definite

I'm implementing a spectral clustering algorithm and I have to ensure that a matrix (laplacian) is positive semi-definite. A check …

c++ eigen eigen3
How to get the number of rows and columns of an Eigen::MatrixXd?

I am trying to traverse Eigen::MatrixXd matrix. However, there does not seem to be a function that returns the …

c++ eigen3
Using Eigen::Map<Eigen::MatrixXd> as function argument of type Eigen::MatrixXd

In short, the question is how to pass a Eigen::Map<Eigen::MatrixXd> object to a function which …

c++ numpy eigen3