diff --git a/mat.cc b/mat.cc index c8084ac..210d77d 100644 --- a/mat.cc +++ b/mat.cc @@ -50,7 +50,7 @@ const NRMat NRMat::oplus(const NRMat &rhs) const { SAME_LOC(*this, rhs); NRMat ret(nn + rhs.nn, mm + rhs.mm, getlocation()); - ret = 0; + ret.clear(); ret.storesubmatrix(0, 0, *this); ret.storesubmatrix(nn, mm, rhs); return ret;