ORNL / ReSolve

Library of GPU-resident linear solvers
Other
58 stars 2 forks source link

Add function to expand symmetric matrix stored as an upper/lower triangular to a full square matrix #155

Closed pelesh closed 2 months ago

pelesh commented 5 months ago

In some instances an application generating symmetric matrices in a lower/upper triangle storage format may use Re::Solve's LU solvers. In that case, the matrix needs to be expanded to the full square matrix format. It would be helpful to have expandSymmetricMatrix function available to make such transformation when needed.

First to decide is where this function should be implemented:

Several implementation details that need to be decided:

CC @kswirydo @maksud

superwhiskers commented 5 months ago

this will be closed by the merge of #164 unless the addition of ReSolve::matrix::expand is dropped.

superwhiskers commented 5 months ago

actually, i suppose that doesn't totally resolve the issue since ReSolve::matrix::expand is currently only host-side. it still needs to be decided whether there's a need for gpu-related functionality here

pelesh commented 2 months ago

This issue has been resolved in #184. Feel free to reopen it, if needed.