Merge pull request #2392 from kartikdutt18/RemoveSomeWarnings

Remove -Wreorder warning in  LARS.
This commit is contained in:
Ryan Curtin
2020-05-01 19:02:44 -04:00
committed by GitHub
+4 -4
View File
@@ -77,8 +77,8 @@ LARS::LARS(const LARS& other) :
useCholesky(other.useCholesky),
lasso(other.lasso),
lambda1(other.lambda1),
lambda2(other.lambda2),
elasticNet(other.elasticNet),
lambda2(other.lambda2),
tolerance(other.tolerance),
betaPath(other.betaPath),
lambdaPath(other.lambdaPath),
@@ -99,8 +99,8 @@ LARS::LARS(LARS&& other) :
useCholesky(other.useCholesky),
lasso(other.lasso),
lambda1(other.lambda1),
lambda2(other.lambda2),
elasticNet(other.elasticNet),
lambda2(other.lambda2),
tolerance(other.tolerance),
betaPath(std::move(other.betaPath)),
lambdaPath(std::move(other.lambdaPath)),
@@ -125,8 +125,8 @@ LARS& LARS::operator=(const LARS& other)
useCholesky = other.useCholesky;
lasso = other.lasso;
lambda1 = other.lambda1;
lambda2 = other.lambda2;
elasticNet = other.elasticNet;
lambda2 = other.lambda2;
tolerance = other.tolerance;
betaPath = other.betaPath;
lambdaPath = other.lambdaPath;
@@ -150,8 +150,8 @@ LARS& LARS::operator=(LARS&& other)
useCholesky = other.useCholesky;
lasso = other.lasso;
lambda1 = other.lambda1;
lambda2 = other.lambda2;
elasticNet = other.elasticNet;
lambda2 = other.lambda2;
tolerance = other.tolerance;
betaPath = std::move(other.betaPath);
lambdaPath = std::move(other.lambdaPath);