Classes | |
class | LSQRsolver |
LSQR For SLIMpy. More... | |
Variables | |
string | __copyright__ |
DESCRIPTION: LSQR For SLIMpy. | |
string | __license__ |
string __copyright__ |
Initial value:
""" Copyright 2008 Sean Ross-Ross """
Attempts to solve the least squares problem that minimizes norm(y-A*x) if A is inconsistent, otherwise it attemps to solve the system of linear equations A*x=y
Inputs: modelspace -- The space of the model, to generate initial guess. maxiter -- Maximum number of iteration for solver. tol -- Desired tolerance for solution. fastlsqr -- bool to calcualte reside if governed by max tol.
A -- operator object containing a complete y -- vector instance Outputs: x -- The solution (N vector) to the problem.
string __license__ |
Initial value:
""" This file is part of SLIMpy . SLIMpy is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SLIMpy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with SLIMpy . If not, see <http://www.gnu.org/licenses/>. """