These are chat archives for elemental/chat

15th
Sep 2016
Ryan H. Lewis
@rhl-
Sep 15 2016 01:22
Hey, quick question. If you have an El::DistMatrix attached to a mutable buffer, and any other distmatrix. can you do operator= safely without a resize happening?
Jack Poulson
@poulson
Sep 15 2016 02:27
the best way to guarantee that beyond having the size right already is to create a view and assign to the view
e.g., auto AView = A(ALL,ALL); AView = B;
views cannot be resized
at least not larger
they can't reallocate
Ryan H. Lewis
@rhl-
Sep 15 2016 03:39
the trouble we were seeing is that calls to A = B or El::Copy(B,A); or something is that these calls seem to mess with the memory underlying A, even with A is attached to something of the appropriate size.
But, i'll try the view thing.
Jack Poulson
@poulson
Sep 15 2016 03:43
that would only happen if A and B have different sizes
I would recommend putting together a Minimum Working Example if you think otherwise
Ryan H. Lewis
@rhl-
Sep 15 2016 03:44
Ok.