eigen3 Questions

2

To write Eigen::Matrix to file I really like to use the following: typedef Eigen::Matrix<Scalar, Eigen::Dynamic, Eigen::Dynamic> Matrix_MxN; Matrix_MxN J = Matrix_MxN::Zeros(10,10); std::of...
Inspissate asked 19/8, 2014 at 17:28

2

Solved

I'm currently trying to figure out how exactly to use Eigen's FFT algorithm. Let us a assume I have a function std::complex<double> f(std::complex<double> const & t){ return std::...
Siegel asked 2/3, 2020 at 19:45

2

The question is a continuation/repeated one to a previous question, which didn't resolve the issue i'm running into. Using Eigen with Cmake Compiling Eigen with make file is one step task. But i...
Stacystadholder asked 3/2, 2015 at 19:1

4

Solved

The following code compiles fine with clang-trunk in c++17 mode but breaks in c++2a (upcoming c++20) mode: // Meta struct describing the result of a comparison struct Meta {}; struct Foo { Meta o...
Trahurn asked 6/3, 2020 at 16:29

3

Solved

How to set the new values to zero after resizing a matrix? It is really weird that after resizing the matrix, the new values are set to trash values instead of at least set to zero. N = 0; Eigen:...
Deglutinate asked 14/8, 2014 at 21:12

1

Solved

Convolving an input tensor of shape (3, 20, 30) (channel-first notation) with 8 filters of shape (3, 5, 7) should result in a tensor of shape (8, 24, 16). I'm trying to implement this using Eigen::...
Melanson asked 10/11, 2019 at 12:0

2

I am still new to the Eigen library and C++. I am testing some code and I do not get why this #include <iostream> #include <Eigen/Dense> using namespace std; int main() { int a = 2...
Kilmer asked 23/10, 2019 at 12:1

2

Solved

I have only recently started exploring C++ Eigen library and a little puzzled with some of the documentation. It would be great if someone can clarify this. In the common pitfalls (https://eigen....
Nataline asked 3/8, 2019 at 19:36

4

Solved

The setRandom function in the Eigen matrix library fills a given matrix with random numbers in the range [-1,1]. How can I extend this to generate numbers within any given range? I require floating...
Extravagance asked 6/3, 2016 at 14:16

2

Solved

The popular linear algebra library Eigen comes with a long list of so-called "unsupported" modules, for example modules for FFT, numerical differentiation or Euler angles. In the Eigen documentati...
Makeup asked 26/5, 2019 at 6:37

1

As a newcomer to Eigen there is something I am battling to come to terms with. With matrix multiplication Eigen creates a temporary by default to avoid aliasing issues: matA = matA * matA; // wor...
Humming asked 16/5, 2019 at 13:46

1

Solved

I am confused about Eigen's QR decomposition. My understanding is that the matrix Q is stored implicitly as a sequence of Householder transformations, and that the matrix R is stored as an upper tr...
Wadsworth asked 8/5, 2019 at 19:6

2

Solved

I'm currently developing a Kalman Filtering library using Eigen and I've successfully gotten it working on my development Mac. Now I'm trying to set it up with Travis CI and CMake is having trouble...
Giacinta asked 31/12, 2018 at 22:16

2

I've implemented a piece of code with Eigen and I would like Eigen to use BLAS and LAPACK . I've seen here, that is possible but I don't know how or where to put those values/directives in the cod...
Chassepot asked 10/4, 2017 at 16:10

0

Recently I am using Eigen library for a project. I’m curious why there’s no binary file to link, but only a header. I don’t really understand how Eigen works behind the scene to make this possible....
Oriente asked 1/12, 2018 at 19:11

2

Solved

In short, the question is how to pass a Eigen::Map<Eigen::MatrixXd> object to a function which expects a Eigen::MatrixXd object. Longer story: I have this C++ function declaration ...
Inhabiter asked 18/2, 2015 at 15:54

1

Consider the following code. const int N = 100; const float alpha = 0.9; Eigen::MatrixXf myVec = Eigen::MatrixXf::Random(N,1); Eigen::MatrixXf symmetricMatrix(N, N); for(int i=0; i<N; i++) fo...
Glassworker asked 8/10, 2018 at 7:33

1

Solved

I would like to create new Eigen::Array using an index. I know it is possible for Eigen::Matrix, a code is given here. A similar question has also been posted on stackoverflow The question is ho...
Sirloin asked 12/9, 2018 at 7:6

2

Solved

I am trying to do something as simple as: std::cout << e << std::endl; where e is of type Eigen::Affine3d. However, I am getting unhelpful error messages like: cannot bind 'std::o...
Hyksos asked 10/9, 2018 at 10:28

3

Solved

I am using 2D Eigen::Arrays for a project, and I like to keep using them in the case of huge 2D arrays. For avoiding memory issues, I thought to use memory mapped files to manage (read/modify/writ...

3

Solved

How to get text representation for Vector3f or other types in Eigen library. I see lot of examples that uses .format() which returns WithFormat class. This then can be used with cout. However I'm l...
Aylesbury asked 29/5, 2016 at 9:0

1

Solved

In C++11, I need to call a function recursively from 0,...,n (where n is a compile time constant). This is the structure of the problem, which appears to be fatally flawed: #include "Eigen/Dense" ...
Aronarondel asked 8/5, 2018 at 12:11

2

I understand that the Tensor class supports slicing, but when I tried to do slicing on a TensorMap instance, the error is that the operation is not supported. How can I slice a TensorMap?
Deal asked 22/1, 2017 at 17:50

1

I would like to know if it is possible to automatically construct/initialize at compilation a static const Eigen::Matrix ? I guess this mandatorily requires a constexpr CTOR for all Eigen::Matrix t...
Catabolite asked 4/3, 2018 at 14:48

1

Solved

I get a Eigen::Tensor<std::complex, 2> after some operations on a Tensor with more dimensions. Is there an easy way to create a Eigen::MatrixXcf from this Tensor-object or do I have to copy t...
Trillby asked 14/2, 2018 at 20:38

© 2022 - 2024 — McMap. All rights reserved.