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

Copy of matrix values without allocating new memory space #3194

Closed
SylvestreSakti opened this issue Nov 4, 2024 · 0 comments
Closed

Copy of matrix values without allocating new memory space #3194

SylvestreSakti opened this issue Nov 4, 2024 · 0 comments

Comments

@SylvestreSakti
Copy link
Contributor

Describe the current behavior

Currently, there is no method for Matrix objects (especially DenseMatrix) that lets the user copy values from one matrix to another without allocating new memory for a new matrix.
This can lead to overconsumption of memory space when dealing with large matrices.

Describe the expected behavior

It is expected to have a copyValues(originalMatrix, copyMatrix) method in DenseMatrix that can copy the values from the originalMatrix to the already existing copyMatrix (the dimensions of the matrices should be the same).

Describe the motivation

This need follows this PR in OpenLoadFlow : powsybl/powsybl-open-loadflow#1109

In this PR, a local method has been implemented to copy the values of a DenseMatrix but a clean way would be to have this method directly in powsybl-core.

Extra Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants