[mlpack-git] [mlpack] Implementation of primal-dual interior point SDP solver (#391)
Ryan Curtin
notifications at github.com
Mon Jan 26 11:15:05 EST 2015
> + if (initialZ.n_rows != sdp.N() || initialZ.n_cols != sdp.N())
> + Log::Fatal << "PrimalDualSolver::PrimalDualSolver(): "
> + << "initialZ needs to be square n x n matrix"
> + << std::endl;
> +
> + if (!arma::chol(tmp, initialZ))
> + Log::Fatal << "PrimalDualSolver::PrimalDualSolver(): "
> + << "initialZ needs to be symmetric positive definite"
> + << std::endl;
> +}
> +
> +/**
> + * alphahat = sup{ alphahat : A + dA is psd }
> + */
> +static inline double
> +AlphaHat(const arma::mat& A, const arma::mat& dA)
This is only used once; why not just inline it into Alpha()? (which is pretty short anyway)
---
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/391/files#r23541449
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20150126/cbfb7f50/attachment-0001.html>
More information about the mlpack-git
mailing list