Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block operations could be faster (ever so slightly) #113

Open
Pouya-moh opened this issue Apr 11, 2018 · 2 comments
Open

Block operations could be faster (ever so slightly) #113

Pouya-moh opened this issue Apr 11, 2018 · 2 comments

Comments

@Pouya-moh
Copy link
Contributor

Hi,

One way to speed up, is to use fixed size matrix block operations which according to Eigen documentation is slightly faster. However overall it could mount to something considerable.

// Block of size (p,q), starting at (i,j) 
matrix.block(i,j,p,q); // dynamic
matrix.block<p,q>(i,j); // fixed

This holds for segment, head, and tail operations for vectors (down below the same documentation page) and corner operations for matrices. This of course cannot be a single fix. It has be done slowly over the course time.

Cheers,
Pouya.

@EnricoMingo
Copy link
Contributor

Ok, maybe I can prepare a branch and work on it.

@Pouya-moh
Copy link
Contributor Author

I can also contribute to that branch...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants