Author: luc
Date: Tue Sep 30 00:15:05 2008
New Revision: 700367
URL: http://svn.apache.org/viewvc?rev=700367&view=rev
Log:
updated userguide after deprecation of internal LU decomposition in linear
algebra
Modified:
commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml
Modified:
commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml
URL:
http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml?rev=700367&r1=700366&r2=700367&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml
(original)
+++ commons/proper/math/branches/MATH_2_0/src/site/xdoc/userguide/linear.xml
Tue Sep 30 00:15:05 2008
@@ -68,7 +68,7 @@
System.out.println(p.getRowDimension()); // 2
// Invert p
-RealMatrix pInverse = p.inverse();
+RealMatrix pInverse = new LUDecompositionImpl(p).inverse();
</source>
</p>
</subsection>
@@ -109,10 +109,11 @@
RealMatrix coefficients = new RealMatrixImpl(coefficientsData);
</source>
Next create a <code>double[]</code> array to represent the constant
- vector and use <code>solve(double[])</code> to solve the system
+ vector and use <code>solve(double[])</code> from the default
implementation
+ of <code>LUDecomposition</code> to solve the system
<source>
double[] constants = {1, -2, 1};
-double[] solution = coefficients.solve(constants);
+double[] solution = new LUDecompositionImpl(coefficients).solve(constants);
</source>
The <code>solution</code> array will contain values for x
(<code>solution[0]</code>), y (<code>solution[1]</code>),