Skip to main content

Questions tagged [eigen]

Eigen is a C++ template library for linear algebra: matrices, vectors, and related algorithms.

5 votes
1 answer
164 views

I have the following function in Matlab: ...
drakon101's user avatar
  • 417
8 votes
3 answers
2k views

I have the following function in Matlab: ...
drakon101's user avatar
  • 417
-4 votes
1 answer
253 views

I have the following function that takes too long to execute. I need to made this at least 2x times faster. ...
g3Dscans's user avatar
4 votes
1 answer
751 views

Here, is my implementation of Iterative Closest Point algorithm in C++. The code is written using the Eigen library. I have tried to implement an efficient coding methodology best to my knowledge ...
Aryaman Patel's user avatar
2 votes
2 answers
292 views

In my fast implementation of Non-negative Matrix Factorization (Rcpp Machine Learning Library, RcppML), about 40% of the runtime is spent solving Non-negative Least Squares (NNLS) systems (the rest of ...
zdebruine's user avatar
  • 153
3 votes
1 answer
285 views

I have a c++ project written as a Matlab Mex program that is constructing an image composed of IxJ pixels. Each pixel value is calculated by finding the contributions to that pixel from all the ...
drakon101's user avatar
  • 417
3 votes
1 answer
2k views

I need to transform the coordinates from spherical to Cartesian space using the Eigen C++ Library. The following code serves the purpose: ...
Soo's user avatar
  • 133
6 votes
1 answer
301 views

I'm trying to speed up by multivariate normal density function by taking advantage of the fact that the covariance matrix is of the form A + U C U'. The inverse of such a matrix can be calculated ...
Taylor's user avatar
  • 303
0 votes
2 answers
267 views

Background: I have posted a similar question here. I followed the suggestions of @ Ben Steffan and made the appropriate changes despite number 6 that I did not understand and number 7. Question: ...
justanewb's user avatar
  • 159
3 votes
1 answer
796 views

Background: I have made a post about this on another account here. I am writing the least squares algorithm into a class in C++ and I want to make sure that what I am doing is the most efficient and ...
justanewb's user avatar
  • 159
2 votes
0 answers
470 views

Background Information: Here is an outline of the algorithm known as Forward Monte Carlo for pricing American options which is from the paper, "A Forward Monte Carlo Method for American Options ...
Wolfy's user avatar
  • 219
5 votes
1 answer
1k views

I'm a beginner in C++ and I would appreciate advices to optimize the following function I wrote with Eigen (in fact, to be used with RcppEigen). So far, I observe a 3.5x speed-up compared to the ...
user79097's user avatar
  • 159
4 votes
0 answers
1k views

I am a new to Eigen, and I implemented a logistic regression model with it. It works but I don't know whether it is implemented in an efficient way. ...
Jason's user avatar
  • 41
4 votes
1 answer
428 views

As I mentioned at the end of my Round 2 answer, I've needed to expand my code in order to produce faithfully the data needed for Figure 1 of this paper. Unfortunately, the updates have made my script ...
abcd's user avatar
  • 329
4 votes
1 answer
320 views

Intro Yesterday I posted this question. Since then, I've updated my code to incorporate these suggestions. I've also removed the dependence on C++11. Finally, I've made the following changes that ...
abcd's user avatar
  • 329

15 30 50 per page