Skip to content

Reuse matrices during iteration#102

Open
maekclena wants to merge 1 commit into
educelab:developfrom
maekclena:optimize-eigen
Open

Reuse matrices during iteration#102
maekclena wants to merge 1 commit into
educelab:developfrom
maekclena:optimize-eigen

Conversation

@maekclena

Copy link
Copy Markdown

During gradient iterations, matrices can be reused to avoid new allocation. setFromTriplets resets data and keeps allocated memory if it is big enough.

Even for matrices that are used only once, setFromTriplets calls the per-column reserve which is more accurate than the scalar version.

With "openabf_example_benchmark", I measured a modest 1% speedup but the changes are trivial.

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

Successfully merging this pull request may close these issues.

1 participant