git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1097462 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gilles Sadowski 2011-04-28 13:53:23 +00:00
parent dcfb76fa00
commit 8af698213b
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ DecompositionSolver solver = new LUDecompositionImpl(coefficients).getSolver();
Next create a <code>RealVector</code> array to represent the constant
vector B and use <code>solve(RealVector)</code> to solve the system
<source>
RealVector constants = new RealVectorImpl(new double[] { 1, -2, 1 }, false);
RealVector constants = new ArrayRealVector(new double[] { 1, -2, 1 }, false);
RealVector solution = solver.solve(constants);
</source>
The <code>solution</code> vector will contain values for x