eigen Questions
1
Solved
I want to map from a C-type array to a Column majored Eigen matrix.
The mapping itself is using the RowMajor type,
so I tried
std::vector<double> a(9);
double *p= a.data();
Eigen::MatrixXd...
1
Solved
We're just in the process of porting our codebase over to Eigen 3.3 (quite an undertaking with all the 32-byte alignment issues). However, there's a few places where performance seems to have been ...
0
iam working on a numerical code and want to evaluate how Sparse and Dense Matrix-LU decomposition (and later others as well) differ for the usecase of the code.
Eigens Dense Decomposition Objects c...
Plod asked 23/11, 2016 at 12:37
1
Solved
I am attempting to parallelize the below loop with an OpenMP reduction;
#define EIGEN_DONT_PARALLELIZE
#include <iostream>
#include <cmath>
#include <string>
#include <eigen3/...
2
Solved
I can't figure out if and how it's possible to map a two-dimensional double array to an Eigen::Matrix.
Is it possible to map an array double d[][] which I receive as double** p to an Eigen::Matrix?...
1
Solved
I need to define a function that takes a const C array and maps it into an Eigen map. The following code gives me an error:
double data[10] = {0.0};
typedef Eigen::Map<Eigen::VectorXd> MapVe...
2
Solved
I am using MatrixXd matrices from Eigen on my code, and at a certain point I need a 3D one. Since Eigen does not have tridimensional matrix types, as it is optimized just for linear algebra, instea...
2
I want to solve Ax = b where A is a very large square positive definite symmetric block matrix and x and b are vectors. When I say large I mean for a nxn matrix an n as large as 300,000.
Here is ...
Will asked 13/5, 2016 at 12:24
2
Solved
What I have is diagonal matrix of type Eigen::MatrixXi. I need elements on the diagonal to be sorted in ascending order. For example like this:
2 0 0 1 0 0
0 7 0 >>> 0 2 0
0 0 1 0 0 7
I...
3
I'm trying to use the Eigen library for some simple image processing. I'd use Array3f for an RGB triple and an Array to hold an RGB image. This seems to work partially, and I can conveniently do co...
Postal asked 28/8, 2015 at 18:48
1
I want to solve a linear algebraic equation Ax = b using Eigen solvers.
In my case, A is a complex sparse matrix(26410*26410), b is a real vector (26410*1).
I use mex file in MATLAB to map the spa...
Kevyn asked 12/10, 2016 at 9:5
2
Solved
I am using Eigen library and its block operations, according to https://eigen.tuxfamily.org/dox/group__TutorialBlockOperations.html the blocks are both lvalues and rvalues. But the following progra...
3
Solved
I tried to compile following program (main.cu) with the nvcc (CUDA 5.0 RC):
#include <Eigen/Core>
#include <iostream>
int main( int argc, char** argv )
{
std::cout << "Pure CUD...
6
I was looking over the performance benchmarks: http://eigen.tuxfamily.org/index.php?title=Benchmark
I could not help but notice that eigen appears to consistently outperform all the specialized ve...
Kenney asked 28/4, 2012 at 17:52
1
Solved
How can you perform a element-wise multiplication in place using Eigen3?
Does
a = a.cwiseProduct(b);
run in place? Or is
a.array() *= b.array();
the better solution in terms of style and per...
Transcription asked 15/8, 2014 at 14:53
2
Solved
Given a set of N points in a 3D space, I am trying to find the best fitting plane using SVD and Eigen.
My algorithm is:
Center data points around (0,0,0).
Form 3xN matrix of point coordinates.
C...
3
Solved
I was wondering if there is a good way to test two Eigen matrices for approximate equality using Google Test, or Google Mock.
Take the following test-case as a simplified example: I am multiplying...
Chavis asked 2/8, 2014 at 12:22
3
Solved
I try to read a large cvs file into Eigen Matrix, below the code found having problem where it can not detect each line of \n in cvs file to create multiple rows in the matrix. (It read entire file...
2
Solved
I'm looking through the Eigen source code for educational purposes. I've noticed that for each concrete class template X in the hierarchy, there is an internal::traits<X> defined. A typical e...
2
Solved
Even though I have included header guards on all my header files, when I create a header file PointXYZRGBAI.h and include it in both LidarFile.cpp and core.cpp, an error is generated
duplica...
1
I've been using Eigen in my software, and I've run into an issue today, caused by changing my code from building a static library to dynamic library in Windows, using Visual Studio 2013. The reason...
Marquee asked 6/10, 2014 at 19:18
2
Solved
I am using Eigen for a project I am working on, where runtime performance is absolutely crucial (needs to meet real-time constraints).
So far, Eigen gives me reasonably good performance. However, ...
1
Solved
I would like to understand how expression templates work in Eigen.
I understood that the sum of two dynamical double vectors is performed by something which looks like this :
CwiseBinaryOp< int...
2
Solved
2
Solved
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 matrix like the one below
3, 0, 0,
0, 8, 0,
0, 0, 6;
I don't understand ...
Bedmate asked 27/5, 2016 at 20:53
© 2022 - 2024 — McMap. All rights reserved.