casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SteepestDescentSolver.h
Go to the documentation of this file.
1 //# ConjugateGradientSolver.h: Definition for an iterative ConjugateGradientSolver
2 //# Copyright (C) 1996,1997,1998,1999,2000,2001,2002,2003
3 //# Associated Universities, Inc. Washington DC, USA.
4 //#
5 //# This library is free software; you can redistribute it and/or modify it
6 //# under the terms of the GNU Library General Public License as published by
7 //# the Free Software Foundation; either version 2 of the License, or (at your
8 //# option) any later version.
9 //#
10 //# This library is distributed in the hope that it will be useful, but WITHOUT
11 //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 //# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 //# License for more details.
14 //#
15 //# You should have received a copy of the GNU Library General Public License
16 //# along with this library; if not, write to the Free Software Foundation,
17 //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18 //#
19 //# Correspondence concerning AIPS++ should be adressed as follows:
20 //# Internet email: aips2-request@nrao.edu.
21 //# Postal address: AIPS++ Project Office
22 //# National Radio Astronomy Observatory
23 //# 520 Edgemont Road
24 //# Charlottesville, VA 22903-2475 USA
25 //#
26 //#
27 //# $Id: ConjugateGradientSolver.h,v 1.2 2006/03/30 23:45:29 sbhatnag Exp $
28 
29 #ifndef SYNTHESIS_STEEPESTDESCENT_H
30 #define SYNTHESIS_STEEPESTDESCENT_H
31 //----------------------------------------------------------------------------
32 
33 #include <casa/aips.h>
34 
38 #include <msvis/MSVis/VisBuffer.h>
39 #include <casa/Arrays/Vector.h>
40 #include <casa/OS/Timer.h>
41 
42 #include <casa/Logging/LogIO.h>
43 #include <casa/Logging/LogSink.h>
45 
46 namespace casa {
47 
49  {
50  public:
52  casacore::Int nIter=20, casacore::Double tol=1E-5);
54 
55  void setMaxParams(casacore::Int nParams){maxParams=nParams;};
56 
58  casacore::Int nAnt, casacore::Int SlotNo);
59 
61 
63 
64  private:
66  casacore::Double& sumWt,casacore::Int negate=0, casacore::Int weighted=1);
67  casacore::Double getGOF(const VisBuffer& residual,casacore::Int& whichPol, casacore::Double& sumWt,const char *msg="");
68 
69  casacore::Int /*maxIter,*/ maxParams;
70 
73 
76  };
77 };
78 
79 #endif
int Int
Definition: aipstype.h:50
casacore::Matrix< casacore::Bool > flags
EPJones (pointing errors)
Definition: EPJones.h:56
casacore::Double solve2(VisEquation &ve, VisIter &vi, EPJones &epj, casacore::Int nAnt, casacore::Int SlotNo)
ostream-like interface to creating log messages.
Definition: LogIO.h:167
casacore::Double solve(VisEquation &ve, EPJones &vj, VisBuffer &vb, casacore::Int nAnt, casacore::Int SlotNo)
casacore::Vector< casacore::Complex > getVj(const VisBuffer &vb, casacore::Int NAnt, casacore::Int whichAnt, casacore::Int whichPol, casacore::Double &sumWt, casacore::Int negate=0, casacore::Int weighted=1)
double Double
Definition: aipstype.h:55
casacore::Vector< casacore::Int > polMap_p
casacore::Double getGOF(const VisBuffer &residual, casacore::Int &whichPol, casacore::Double &sumWt, const char *msg="")
Base class for Iteration.
Definition: Iterate.h:40
VisBuffers encapsulate one chunk of visibility data for processing.
Definition: VisBuffer.h:153
SteepestDescentSolver(casacore::Int nParams, casacore::Vector< casacore::Int > polMap, casacore::Int nIter=20, casacore::Double tol=1E-5)
void setMaxParams(casacore::Int nParams)
VisibilityIterator iterates through one or more writable MeasurementSets.