[mlpack-git] [mlpack] Implementation of primal-dual interior point SDP solver (#391)
Stephen Tu
notifications at github.com
Mon Jan 26 13:40:04 EST 2015
> @@ -189,5 +187,40 @@ void AugLagrangianFunction<LRSDPFunction>::Gradient(
> gradient = 2 * s * coordinates;
> }
>
> +// Template specializations for function and gradient evaluation.
> +// Note that C++ does not allow partial specialization of class members,
> +// so we have to go about this in a somewhat round-about way.
> +template <>
> +inline double AugLagrangianFunction<LRSDPFunction<SDP<arma::sp_mat>>>::Evaluate(
> + const arma::mat& coordinates) const
> +{
> + return EvaluateImpl(function, coordinates, lambda, sigma);
> +}
Two questions:
1. How does this avoid the no partial specialization allowed for class members (see comment)
2. Doesn't this require us to change the type signature on `AugLagrangianFunction`?
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/391/files#r23552924
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150126/63055a78/attachment.html>
More information about the mlpack-git
mailing list