eigen Questions

1

Solved

Given a set of 2d points (in Cartesian form), I need to find the minimum-area ellipse such that every point in the set lies either on or inside the ellipse. I have found the solution in the form o...
Horribly asked 19/6, 2016 at 19:51

4

Solved

From what I've read about Eigen (here), it seems that operator=() acts as a "barrier" of sorts for lazy evaluation -- e.g. it causes Eigen to stop returning expression templates and actually perfor...
Ezarras asked 6/6, 2016 at 13:22

1

Solved

I have a MatrixXf variable and a VectorXf variable. I would like to perform a rowwise division using the Vector on my Matrix. Is it possible to do something like this? #include <iostream> #i...
Robyn asked 25/4, 2016 at 19:19

1

Solved

Here is a function I would like to write: template<typename NumType> using Vec = Eigen::Matrix<NumType, Eigen::Dynamic, 1>; template<typename T> void foo(Eigen::Ref<Vec<T...
Gelasias asked 14/4, 2016 at 19:56

1

Solved

This question was asked in haste. The error in my original program, was not the typo in the code that is displayed here. The error was that in my program v was not getting populated due to some con...
Alow asked 5/4, 2016 at 5:29

2

A while back it was a nightmare for me trying to get Eigen up and running on my mac for XCode, but a friend managed to figure it out and shared the instructions with me. I don't want anyone to go t...
Umberto asked 26/2, 2016 at 17:47

1

Solved

I have learnt how to find inverse of a matrix using Eigen. But when I'm finding inverse of an array that is a output of function I got an error request for member ‘inverse’ in ‘x’, which is of ...
Underbid asked 26/2, 2016 at 9:28

0

I am trying to use dynamic Eigen matrices and vectors with boost::odeint. The reason is that I want to solve a problem defined by user input of arbitrary size. The problem can be captured in a stat...
Knighthood asked 26/2, 2016 at 15:56

3

Solved

Below is the C++ implementation comparing the time taken by Eigen and For Loop to perform matrix-matrix products. The For loop has been optimised to minimise cache misses. The for loop is faster th...
Chilly asked 25/2, 2016 at 7:23

2

As part of my pipeline I need to perform eigendecomposition of a big matrix in the order of 6000x6000. The matrix is dense, so except if I simplify the problem (sot sure if possible) no sparse meth...
Untutored asked 22/2, 2016 at 16:46

1

I'm using Julia at the moment but I have a performance critical function which requires an enormous amount of repeated matrix operations on small fixed size matrices (3 dimensional or 4 dimensional...
Theologize asked 21/2, 2016 at 22:10

3

Solved

Is it possible to initialize a static eigen matrix4d in a header file? I want to use it as a global variable. I'd like to do something along the lines of: static Eigen::Matrix4d foo = Eigen::Matr...
Yardstick asked 21/7, 2015 at 20:52

3

Solved

Chances are this is a very stupid question but I spent a pretty absurd amount of time looking for it on the documentation, to no avail. in MATLAB, the find() function gives me an array with the in...
Bedford asked 27/4, 2013 at 7:1

3

Solved

I tried to write a generic serialize function which takes any dense matrix and serializes it: Some other questions which help but not to the end are here: Question1 Question2 I tried the following...
Applegate asked 22/8, 2013 at 13:53

1

Solved

In Eigen, I can do a row-wise or column-wise "partial reduction" to get the maximum coefficients. For example, this program: #include <iostream> #include <Eigen/Dense> int main() { ...
Detection asked 31/12, 2015 at 20:13

2

Solved

I'm trying to compute the 2 major principal components from a dataset in C++ with Eigen. The way I do it at the moment is to normalize the data between [0, 1] and then center the mean. After that ...
Malathion asked 4/11, 2015 at 20:36

2

Solved

I want to convert a matrix from Eigen::Matrix4f to Eigen::Affine3f Any one help? Thanks
Senzer asked 9/12, 2015 at 11:0

2

I have a matrix NxM (usually 10k X 10k elements) describing a ground set. Each line represents an object and each column an specific feature. For example, in the matrix f1 f2 f3 x1 0 4 -1 x2 1 0 ...
Prehistory asked 25/5, 2015 at 22:17

4

Solved

I have an Eigen::MatrixXd and I need to modify the value of the elements in its diagonal. In particular I have another Eigen::MatrixXd with one single column and the same number of rows of the firs...
Zincograph asked 20/11, 2015 at 19:45

1

I am having trouble with floating-point precision by using Eigen. I have two Eigen::MatrixXd; the first matrix A (nx1) contains only positive integers numbers, while the second matrix B (nx1) cont...
Retch asked 19/11, 2015 at 20:22

1

Solved

I have two Eigen::MatrixXd and they always have a single row. The input matrix is A and I want to copy this matrix into another matrix B, but the number of columns between the matrices can be diffe...
Harbour asked 19/11, 2015 at 15:54

1

Solved

I have a matrix, which is given as: std::vector<std::vector<std::complex<double>>> A; And I want to map that to the Eigen linear algebra library like this: Eigen::Map<Eigen...
Timisoara asked 12/11, 2015 at 9:47

1

Solved

This is a rather theoretical question, but I'm quite interested in it and would be glad if someone has some expert knowledge on this which he or she is willing to share. I have a matrix of floats ...
Kerplunk asked 27/10, 2015 at 19:53

1

Solved

I am trying to write a function that accepts only lvalue Eigen expressions passed via const references. My first idea was to keep only the overload const Eigen::MatrixBase<Derived>& and d...
Britzka asked 18/10, 2015 at 18:55

1

Can Eigen do a 2D cross product? I was trying to replace this code: Eigen::Vector2f a, b; float result = a.x()*b.y() - b.x()*a.y(); With this: Eigen::Vector2f a, b; float result = a.cross(b); ...
Wu asked 8/10, 2015 at 6:21

© 2022 - 2024 — McMap. All rights reserved.