[mlpack-svn] r11663 - mlpack/trunk/src/mlpack/core/optimizers/lrsdp
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Feb 29 16:27:45 EST 2012
Author: rcurtin
Date: 2012-02-29 16:27:44 -0500 (Wed, 29 Feb 2012)
New Revision: 11663
Modified:
mlpack/trunk/src/mlpack/core/optimizers/lrsdp/lrsdp_impl.hpp
Log:
Initialize LRSDP A and b vectors to the correct size at construction time,
instead of confusingly expecting users to take care of that themselves.
Modified: mlpack/trunk/src/mlpack/core/optimizers/lrsdp/lrsdp_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/optimizers/lrsdp/lrsdp_impl.hpp 2012-02-29 21:20:25 UTC (rev 11662)
+++ mlpack/trunk/src/mlpack/core/optimizers/lrsdp/lrsdp_impl.hpp 2012-02-29 21:27:44 UTC (rev 11663)
@@ -16,7 +16,9 @@
LRSDP::LRSDP(const size_t numConstraints,
const arma::mat& initialPoint) :
+ a(numConstraints),
b(numConstraints),
+ aModes(numConstraints),
initialPoint(initialPoint),
augLagInternal(*this),
augLag(augLagInternal)
@@ -25,7 +27,9 @@
LRSDP::LRSDP(const size_t numConstraints,
const arma::mat& initialPoint,
AugLagrangian<LRSDP>& augLag) :
+ a(numConstraints),
b(numConstraints),
+ aModes(numConstraints),
initialPoint(initialPoint),
augLagInternal(*this),
augLag(augLag)
More information about the mlpack-svn
mailing list