Changeset 3787


Ignore:
Timestamp:
Jan 29, 2019, 5:59:32 AM (4 years ago)
Author:
Peter
Message:

std::auto_ptr is deprecated in cxx11, so to avoid compiler warnings we use boost::scoped_ptr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/PCA.cc

    r3738 r3787  
    3131#include "utility.h"
    3232#include "Vector.h"
     33
     34#include <boost/smart_ptr/scoped_ptr.hpp>
    3335
    3436#include <iostream>
     
    7779
    7880    // Single value decompose the data matrix
    79     std::auto_ptr<SVD> pSVD( new SVD( A_center ) );
     81    boost::scoped_ptr<SVD> pSVD( new SVD( A_center ) );
    8082    pSVD->decompose();
    8183    Matrix U(pSVD->U());
Note: See TracChangeset for help on using the changeset viewer.