eigen Questions

2

Solved

I have a c++ function using eigen, which is wrapped using pybind11 so that I can call it from python. A simple version of the intended function returns an Eigen::MatrixXd type, which pybind success...
Allonym asked 24/5, 2019 at 18:14

7

Solved

The Eigen library can map existing memory into Eigen matrices. float array[3]; Map<Vector3f>(array, 3).fill(10); int data[4] = 1, 2, 3, 4; Matrix2i mat2x2(data); MatrixXi mat2x2 = Map<Mat...
Topotype asked 9/12, 2011 at 8:53

0

I'm writing an R package using Rcpp and RcppEigen and I'm having a problem with matrix slicing and sub-setting. I need to get an off-diagonal square matrix from a larger square matrix The Eigen::Ma...
Monoclinous asked 25/8, 2020 at 1:6

0

I'm trying to build openMVG on my MacBook running Catalina. When I run "make" I get an error that it can't find 'omp.h'. jaireaux@Johns-MBP ~/Downloads/software/openMVG/build % make...
Expenditure asked 12/7, 2020 at 4:1

2

Solved

I need to include Eigen library in my Android Studio project to do some linear algebra operations and use some C++ code that I've developed for desktop. I've been looking for information on this to...
Character asked 18/1, 2018 at 9:22

4

Eigen::Matrix has a setRandom() method which will set all coefficients of the matrix to random values. However, is there a built in way to set all the matrix coefficients to random values while spe...
Kelliekellina asked 13/6, 2012 at 23:31

1

Solved

I'm working on a package that requires some very fast matrix multiplication so looking to use RcppEigen. For a variety of reasons though having to do with the need for multidimensional arrays, I ne...
Manos asked 26/6, 2020 at 2:10

4

Solved

I added several different versions of Eigen to default including directory of Visual C++. But I got collapse problem when using LDLT (Cholesky decomposition) for some of the testing numerical examp...
Kinsler asked 1/2, 2014 at 10:47

2

Solved

I'm using Eigen and I've got a matrix: MatrixXi x = MatrixXi::Random(5); I'd like to randomly permute the rows and columns using a randomly drawn permutation (just one permutation for both the r...
Jueta asked 7/4, 2013 at 3:27

3

I am using Eigen Sparse Matrices for the first time, and now I would like to know how to get the indices of the nonzero elements. I constructed my Sparse Matrix as follows: Eigen::SparseMatrix&lt...
Dairyman asked 4/3, 2015 at 12:33

2

When trying to download Eigen with http_archive( name = "eigen", strip_prefix = "eigen-3.3.7", sha256 = "d56fbad95abf993f8af608484729e3d87ef611dd85b3380a8bad1d5cbc373a57", urls = [ "https://g...
Becalmed asked 26/3, 2020 at 9:53

2

Solved

Context: I am playing around with spline fitting module of Eigen library. The fit works nice enough, but I do get some warnings (in Visual Studio 2013). The question: Why am I able to disable som...

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

7

Solved

I am using Eigen library for my project. I am searching how to remove a certain row or column from the given matrix in Eigen. I am not successful. MatrixXd A = X1 X2 X3 X4 Y1 Y2 Y3 Y4 Z1 Z2 Z3 Z...
Endorsement asked 8/11, 2012 at 13:58

1

Solved

I've written vectorized versions of some functions that are currently the bottleneck of an algorithm, using Eigen's facilities to do so. I've also checked that AVX is enabled by making sure that E...
Frostwork asked 12/1, 2020 at 23:50

1

Solved

Writing a function implementing a Jacobi Matrix for Newton's method I have noticed a really nasty error. Calling the function auto DF = [T](VectorXd y){ return PhiAndW(y(0),y(1),T).second - Mat...
Fanciful asked 3/1, 2020 at 23:27

1

Solved

During debugging I'd like to have access to eigen matrices and vectors values. It seems that once I have a .natvis file, a custom view of c++ object could be created. There is a .natvis file for Ei...
Subscapular asked 19/10, 2019 at 14:48

1

I'm trying to implement a lightweight (minimal library dependencies) version of a TensorFlow graph in c++ and I'm trying to use Eigen Tensor objects to perform the graphs operations. Right now I'm ...
Jennajenne asked 5/4, 2019 at 9:58

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

Solved

With the Eigen C++ library, I'm having trouble understanding the Transform::linear() function. According to the documentation, it returns the linear part of the transformation. But what does this m...
Harangue asked 15/2, 2016 at 18:49

4

Is it possible to use the foreach syntax of C++11 with Eigen matrices? For instance, if I wanted to compute the sum of a matrix (I know there's a builtin function for this, I just wanted a simple e...
Templetempler asked 20/11, 2014 at 2:10

2

Solved

Can I use pybind1 to pass a three-dimensional numpy array to a c++ function accepting an Eigen::Tensor as argument. For example, consider the following c++ function: Eigen::Tensor<double, 3&gt...
Satirical asked 16/10, 2019 at 12:0

4

Solved

I have an Eigen::MatrixXd and I would like to modify all its elements by applying a function component-wise. For example: MatrixXd m = ...; for each m[i][j]: m[i][j] = exp(m[i][j]); Is there a...
Exteroceptor asked 18/11, 2015 at 17:35

© 2022 - 2024 — McMap. All rights reserved.