- ##
- ## Solve,
- ##
- ## Ax = b
- ##
- ## or equivalently,
- ##
- ## min [phi(x) = (1/2)*<Ax,x> + <b,x>]
- ##
- ## using Algorithm 5.2 in Nocedal and Wright.
- ##
- ## INPUT:
- ##
- ## - ``A`` -- The coefficient matrix of the system to solve. Must
- ## be positive definite.
- ##
- ## - ``b`` -- The right-hand-side of the system to solve.
- ##
- ## - ``x0`` -- The starting point for the search.
- ##
- ## - ``tolerance`` -- How close ``Ax`` has to be to ``b`` (in
- ## magnitude) before we stop.
- ##
- ## OUTPUT:
- ##
- ## - ``x_star`` - The solution to Ax=b.
- ##
- ## NOTES:
- ##
- ## All vectors are assumed to be *column* vectors.
- ##
+ %
+ % Solve,
+ %
+ % Ax = b
+ %
+ % or equivalently,
+ %
+ % min [phi(x) = (1/2)*<Ax,x> + <b,x>]
+ %
+ % using Algorithm 5.2 in Nocedal and Wright.
+ %
+ % INPUT:
+ %
+ % - ``A`` -- The coefficient matrix of the system to solve. Must
+ % be positive definite.
+ %
+ % - ``b`` -- The right-hand-side of the system to solve.
+ %
+ % - ``x0`` -- The starting point for the search.
+ %
+ % - ``tolerance`` -- How close ``Ax`` has to be to ``b`` (in
+ % magnitude) before we stop.
+ %
+ % OUTPUT:
+ %
+ % - ``x_star`` - The solution to Ax=b.
+ %
+ % NOTES:
+ %
+ % All vectors are assumed to be *column* vectors.
+ %