Commit d5ebfd17 authored by Alvarez, Gonzalo's avatar Alvarez, Gonzalo
Browse files

Matrix::swap: semantics fixed

parent 200784b7
......@@ -314,6 +314,12 @@ public:
void swap(Matrix& m)
SizeType row = m.nrow_;
SizeType col = m.ncol_;
m.nrow_ = nrow_;
m.ncol_ = ncol_;
nrow_ = row;
ncol_ = col;
void setTo(const T& val)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment