LCOV - code coverage report
Current view: top level - synthesis/TransformMachines - ConvolutionFunction.cc (source / functions) Hit Total Coverage
Test: casacpp_coverage.info Lines: 1 13 7.7 %
Date: 2024-10-09 13:55:54 Functions: 1 3 33.3 %

          Line data    Source code
       1             : // -*- C++ -*-
       2             : //# AWProjectFT.cc: Implementation of AWProjectFT class
       3             : //# Copyright (C) 1997,1998,1999,2000,2001,2002,2003
       4             : //# Associated Universities, Inc. Washington DC, USA.
       5             : //#
       6             : //# This library is free software; you can redistribute it and/or modify it
       7             : //# under the terms of the GNU Library General Public License as published by
       8             : //# the Free Software Foundation; either version 2 of the License, or (at your
       9             : //# option) any later version.
      10             : //#
      11             : //# This library is distributed in the hope that it will be useful, but WITHOUT
      12             : //# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
      13             : //# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
      14             : //# License for more details.
      15             : //#
      16             : //# You should have received a copy of the GNU Library General Public License
      17             : //# along with this library; if not, write to the Free Software Foundation,
      18             : //# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
      19             : //#
      20             : //# Correspondence concerning AIPS++ should be addressed as follows:
      21             : //#        Internet email: casa-feedback@nrao.edu.
      22             : //#        Postal address: AIPS++ Project Office
      23             : //#                        National Radio Astronomy Observatory
      24             : //#                        520 Edgemont Road
      25             : //#                        Charlottesville, VA 22903-2475 USA
      26             : //#
      27             : //# $Id$
      28             : #include <synthesis/TransformMachines/ConvolutionFunction.h>
      29             : using namespace casacore;
      30             : namespace casa { //# NAMESPACE CASA - BEGIN
      31          15 :   ConvolutionFunction::~ConvolutionFunction() {};
      32           0 :   Matrix<Int> ConvolutionFunction::makeBaselineList(const Vector<Int>& antList)
      33             :   {
      34           0 :     Int na=antList.nelements();
      35           0 :     Int nb=max(na,na*(na-1));
      36           0 :     Matrix<Int> baselineList(nb,2);
      37           0 :     nb=0;
      38           0 :     for(Int ia=0;ia<na;ia++)
      39           0 :       for (int ja=ia;ja<na;ja++)
      40             :         {
      41           0 :           baselineList(nb,0)=antList[ia];
      42           0 :           baselineList(nb,1)=antList[ja];
      43           0 :           nb++;
      44             :         }
      45           0 :     return baselineList;
      46           0 :   }
      47             : };

Generated by: LCOV version 1.16