[petsc-dev] Matlab writes dense matrices as vectors
Barry Smith
bsmith at mcs.anl.gov
Thu Apr 19 09:52:07 CDT 2012
On Apr 19, 2012, at 9:06 AM, Jed Brown wrote:
> It writes the whole thing as one vector, should we require the caller to reshape to clearly identify it as a vector? Then anything with multiple columns could be written as a matrix (e.g. by internally calling sparse()).
I cannot remember why I defaulted to this behavior. (Probably for people using DMDA and automatically reshaping a read in vector into its DMDA defined shape and then later wanting to save that as a vector). I guess it might be more intuitive to change it as you suggest.
Barry
More information about the petsc-dev
mailing list