eigen Questions

1

I'm using RcppEigen to write some C++ functions for my R code, and I'd like to optimize their compilation as much as possible. When I've used Eigen in the past, I've gotten a significant boost from...
Holder asked 24/1, 2014 at 19:41

3

Solved

I need to access the array that contains the data of a MatrixBase Eigen matrix. The Eigen library has the data() method which returns a pointer to an array, however it is only accessible from a Ma...
Logogriph asked 2/8, 2014 at 12:17

1

Solved

I am using m.conservativeResize() to do the equivalent in Eigen as the reshape function in MatLab. So let N = 3, and then... static MatrixXd m(N*N,1); and then I assign this matrix some values, ...
Lowrey asked 27/8, 2015 at 21:8

2

I would like to compare the speed of Matlab in matrix multiplication with the speed of Eigen 3 on an Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz. The code including Eigen: #include <iostream> #i...
Tabu asked 2/2, 2015 at 19:12

3

Solved

Is it possible to create a vector of Eigen Matrix? For example, I run the following line, vector<Matrix<double,4,1>> vector_of_matrix; but I receive the following error, error: tem...
Veljkov asked 1/7, 2015 at 10:50

2

Solved

How to get rank of a matrix in eigen?
Kasiekask asked 25/6, 2015 at 5:31

1

Solved

We want to implement some kind of indoor position determination using iBeacons. This article seems really interesting, in which the author implemented the Non-linear Least Squares Triangulation, us...
Barstow asked 10/11, 2014 at 17:42

1

Solved

I'm writing a C++ function that is templated on type (either float or double), and uses Eigen::Matrix internally. The function will be using a combination of float, double, and templated type Eigen...
Appellation asked 20/4, 2015 at 17:16

1

Solved

Is there a ready function or method in Eigen for the Hat operator? That is the operator, taking a vector as input and returning a matrix, which mimics a cross product with that vector. I know, that...
Ruffina asked 1/10, 2014 at 8:2

3

Solved

Here's a part of Eigen documentation: Matrix3f m; m << 1, 2, 3, 4, 5, 6, 7, 8, 9; std::cout << m; Output: 1 2 3 4 5 6 7 8 9 I couldn't understand how could all the comma separat...
Figuration asked 8/4, 2015 at 18:58

1

Solved

Is there a more elegant solution than to copy the values point to point?! Something like this works for a 1D vector... vector<float> vec(mat.data(), mat.data() + mat.rows() * mat.cols()); ...
Evanesce asked 24/3, 2015 at 20:40

1

Solved

We are trying to implement a new C++ code in my research group to perform large numerical simulations (finite elements, finite difference methods, topology optimization, etc.) The software will be ...
Ellingston asked 10/3, 2015 at 16:9

2

Solved

I am trying to generate a PCL point cloud. All my points are in the following container type: std::vector<Eigen::Vector3d,Eigen::aligned_allocator<Eigen::Vector3d> > I would like to ...
Feudalize asked 15/6, 2013 at 23:55

1

Solved

I am trying to do some L_p norm calculations within a template function something of the sort template<typename Number> Number foo(const Eigen::MatrixBase<Number>& matrix) { retur...
Zink asked 18/2, 2015 at 14:9

1

I like to place Eigen fixed-size matrices into the shared memory. But on execution I am getting the following error: /usr/include/eigen3/Eigen/src/Core/DenseStorage.h:78: Eigen::internal::plain_...
Australoid asked 21/1, 2015 at 11:36

2

Solved

I'm trying to utilize the ODE integration capabilities of Boost using the Matrix class from Eigen 3 as my state vector, but I'm running into problems deep into Boost that I don't understand how to ...
Latitudinarian asked 1/4, 2014 at 9:47

1

Solved

It's quite a simple task, but I was not able to find an answer to it: Using the Eigen library, suppose I have Matrix2Xd mat and Vector2d vec, where mat = 1 1 1 1 1 1 vec = 2 2 Now I need somet...
Burtburta asked 10/12, 2014 at 15:30

1

Solved

I am trying to compile this code in XCode 6: std::unordered_multimap< Frame*, Sim3, std::hash<Frame*>, std::equal_to<Frame*>, Eigen::aligned_allocator< std::pair<const Frame*,...
Bobbette asked 6/12, 2014 at 21:47

4

Solved

I am trying to take the cholesky decomposition of the product of a matrix with its transpose, using Eigen and C++11 "auto" type. The problem comes when I try to do auto c = a * b auto cTc = c.tra...
Breadroot asked 24/11, 2014 at 20:7

2

Solved

I am trying to initialize a matrix (using the Eigen library) to have a nonzero value when I create it. Is there a nice way to do this without a for loop? For example, if I wanted to initialize the...
Am asked 18/11, 2014 at 22:26

1

Solved

I have couple of question about Eigen: Does anyone know if there is any plan to support move semantics in Eigen anytime soon? Couldn't find anything on the TODO list of the Eigen3 web page. Right...
Athamas asked 16/11, 2014 at 17:25

2

Solved

I have the following piece of code (I apologize for the slightly larger code snippet, this is the minimal example I was able to reduce my problem to): #include <Eigen/Dense> #include <com...
Douce asked 2/11, 2014 at 22:57

1

Solved

I am working on a C project I got from the Internet, and I'm trying to add some functions to the project that involve linear algebra. In my previous works in C++, I usually rely on Eigen for linear...
Stebbins asked 12/11, 2014 at 14:17

0

I'm trying to use the Eigen implementation of Levenberg Marquardt algorithm on a Android application. In order to use Eigen, I'm using Android NDK and jni. I've already tested Eigen with simple cal...
Arman asked 28/10, 2014 at 18:21

3

Solved

I need to optimize a surface represented by a 2D grid of points to produce normal vectors of the surface that align with provided target normal vectors. The grid size is likely to be between 201x20...
Yolandoyolane asked 13/10, 2014 at 8:47

© 2022 - 2024 — McMap. All rights reserved.