Top "Eigen" questions

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

Eigen MatrixXd push back in c++

Eigen is a well known matrix Library in c++. I am having trouble finding an in built function to simply …

c++ matrix eigen
Eigen library --> initialize matrix with data from file or existing std::vector<string> content (c++)

My question is how to initialize an eigen Matrix, but NOT this way: matrix << 1,0,1,0, 1,0,1,0, 1,0,1,0, I have a Matrix …

c++ file vector matrix eigen
Inverse of a matrix using eigen

I have learnt how to find inverse of a matrix using Eigen. But when I'm finding inverse of an array …

c++ eigen armadillo
Access a column of a matrix as a vector in Eigen

How can I access a single vector from a matrix? For example: Is there a way to extract a vector …

c++ eigen
Eigen: Is there an inbuilt way to calculate sample covariance

I am using the Eigen library in C++: I am currently calculating the covariance matrix myself as follows: Eigen::MatrixXd …

c++ statistics eigen
write matrix to file in eigen?

I am trying to learn C++ with the Eigen library. int main(){ MatrixXf m = MatrixXf::Random(30,3); cout << "Here …

c++ eigen
Append column to matrix, using Eigen library

It's quite a simple task, but I was not able to find an answer to it: Using the Eigen library, …

c++ eigen
find rowwise maxCoeff and Index of maxCoeff in Eigen

I want to find the maximum values and indices by row of a matrix. I based this on an example …

eigen
Constructing diagonal matrix in eigen

In eigen, we can create a matrix as Matrix3f m; m << 1, 2, 3, 4, 5, 6, 7, 8, 9; How can I create a diagonal …

eigen
How to work with Eigen in CUDA kernels

Eigen is a c++ linear algebra library http://eigen.tuxfamily.org. It's easy to work with basic data types, like …

c++ cuda eigen