]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Nicer way to initialize pointer.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 10 Nov 2010 14:43:23 +0000 (14:43 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Wed, 10 Nov 2010 14:43:23 +0000 (14:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@22672 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/lac/lapack_full_matrix.cc

index 9dd21c3fe9a48445ab026358b96d52eda203ccfc..5b145fa858079290321c41100525615f46695802 100644 (file)
@@ -242,8 +242,8 @@ LAPACKFullMatrix<number>::compute_svd()
   std::fill(wr.begin(), wr.end(), 0.);
   ipiv.resize(8*mm);
   
-  svd_u  = std_cxx1x::shared_ptr<LAPACKFullMatrix<number> >(new LAPACKFullMatrix<number>(mm,mm));
-  svd_vt = std_cxx1x::shared_ptr<LAPACKFullMatrix<number> >(new LAPACKFullMatrix<number>(nn,nn));
+  svd_u.reset (new LAPACKFullMatrix<number>(mm,mm));
+  svd_vt.reset (new LAPACKFullMatrix<number>(nn,nn));
   number* mu  = const_cast<number*> (svd_u->data());
   number* mvt = const_cast<number*> (svd_vt->data());
   int info;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.