ORNL / ReSolve

Library of GPU-resident linear solvers
Other
51 stars 1 forks source link

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

Open pelesh opened 4 weeks ago

pelesh commented 4 weeks 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 2 weeks ago

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

superwhiskers commented 2 weeks 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