[patch] to allow Map classes to act as 'x' or 'b' in SuperLU solve
Submitted by ada..@..il.com
Assigned to Nobody
Link to original bugzilla bug (#454)
Version: 3.0
Description
Created attachment 265
Patch for the solution I came up with
SuperLUSupport.h does not allow a Eigen::Map class to act as 'x' or 'b' in the solve routine. I had a need to use already allocated data to act as 'x', so I simply added an additional Map structure (note the duplication of names here, I am referring to what was called MaptoSLU in 3.0.4) that can accept an Eigen::Map and convert it to the SLuMatrix datatype.
My solution has a lot of duplication with the Matrix conversion to SLuMatrix code, so there's probably a better way to do this, but as I am not versed in the Eigen source code I didn't want to mess about with pre-existing structures.
Patch 265, "Patch for the solution I came up with":
SuperLUpatch.txt