Skip to content

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

Description

@Pouya-moh

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions