From 1824dd31e6a39f5ef2e7b7e01f9b52d7ce0fd1e7 Mon Sep 17 00:00:00 2001 From: Sebastien Brisard Date: Sat, 1 Oct 2011 19:09:00 +0000 Subject: [PATCH] Some changes to the interface of iterative linear solvers. Replaced the confusing boolean param inPlace in the solve() methods by two sets of methods: solve() and solveInPlace(). git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1178073 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/linear/ConjugateGradient.java | 34 ++--- .../math/linear/IterativeLinearSolver.java | 96 ++++++++---- .../PreconditionedIterativeLinearSolver.java | 139 +++++++++++++----- .../math/linear/ConjugateGradientTest.java | 32 ++-- 4 files changed, 200 insertions(+), 101 deletions(-) diff --git a/src/main/java/org/apache/commons/math/linear/ConjugateGradient.java b/src/main/java/org/apache/commons/math/linear/ConjugateGradient.java index d1860e05b..c6a38a90e 100644 --- a/src/main/java/org/apache/commons/math/linear/ConjugateGradient.java +++ b/src/main/java/org/apache/commons/math/linear/ConjugateGradient.java @@ -61,8 +61,9 @@ import org.apache.commons.math.util.IterationManager; *
Barret et al. (1994)
*
R. Barrett, M. Berry, T. F. Chan, J. Demmel, J. M. Donato, J. Dongarra, * V. Eijkhout, R. Pozo, C. Romine and H. Van der Vorst, - * Templates for the Solution of Linear Systems: Building Blocks for - * Iterative Methods, SIAM
+ * + * Templates for the Solution of Linear Systems: Building Blocks for Iterative + * Methods, SIAM *
Strakos and Tichy (2002) *
*
Z. Strakos and P. Tichy,