//#---------------------------------------------------------------------------
//# Templates.cc: explicit templates for aips++
//#---------------------------------------------------------------------------
//# Copyright (C) 2004
//# ATNF
//#
//# This program is free software; you can redistribute it and/or modify it
//# under the terms of the GNU General Public License as published by the Free
//# Software Foundation; either version 2 of the License, or (at your option)
//# any later version.
//#
//# This program 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 General
//# Public License for more details.
//#
//# You should have received a copy of the GNU General Public License along
//# with this program; if not, write to the Free Software Foundation, Inc.,
//# 675 Massachusetts Ave, Cambridge, MA 02139, USA.
//#
//# Correspondence concerning this software should be addressed as follows:
//#        Internet email: Malte.Marquarding@csiro.au
//#        Postal address: Malte Marquarding,
//#                        Australia Telescope National Facility,
//#                        P.O. Box 76,
//#                        Epping, NSW, 2121,
//#                        AUSTRALIA
//#
//# $Id: Templates.cpp 1091 2006-07-28 03:25:32Z mar637 $
//#---------------------------------------------------------------------------
#include "Scantable.h"

#include <casa/aips.h>
#include <casa/namespace.h>
#include <casa/Exceptions/Error.h>
#include <casa/Utilities/CountedPtr.h>

template class casa::CountedConstPtr<asap::Scantable>;
template class casa::CountedPtr<asap::Scantable>;
template class casa::CountedPtr<asap::STPol>;
template class casa::PtrRep<asap::Scantable>;
template class casa::SimpleCountedConstPtr<asap::Scantable>;
template class casa::SimpleCountedConstPtr<asap::STPol>;
template class casa::SimpleCountedPtr<asap::Scantable>;
template class casa::SimpleCountedPtr<asap::STPol>;

#include <casa/Arrays/ArrayLogical.h>
#include <casa/Arrays/ArrayMath.h>
#include <casa/Arrays/MaskArrMath.h>
#include <casa/Arrays/MaskedArray.h>
#include <casa/Arrays/Array.h>
#include <casa/Arrays/Vector.h>
#include <casa/Utilities/BinarySearch.h>
#include <coordinates/Coordinates/FrequencyAligner.h>
#include <lattices/Lattices/Lattice.h>
#include <lattices/Lattices/LatticeUtilities.h>
#include <scimath/Mathematics/InterpolateArray1D.h>
#include <tables/Tables/BaseMappedArrayEngine.h>
#include <tables/Tables/TableVector.h>
#include <tables/Tables/TVec.h>
#include <tables/Tables/TVecScaCol.h>
#include <tables/Tables/TVecTemp.h>
//#include <tables/Tables/TVecMath.h>

template class ROTableVector<uInt>;
template class TableVector<uInt>;
template class TabVecScaCol<uInt>;
template class TabVecTemp<uInt>;
template class TabVecRep<uInt>;

template class ROTableVector<Float>;
template class TabVecScaCol<Float>;
template class TabVecTemp<Float>;
template class TabVecRep<Float>;

template class ROTableVector<uChar>;
template class TableVector<uChar>;
template class TabVecScaCol<uChar>;
template class TabVecTemp<uChar>;
template class TabVecRep<uChar>;

//template void convertArray<Bool, uChar>(Array<Bool> &, Array<uChar> const &);
template void casa::convertArray<uChar, Bool>(Array<uChar> &, Array<Bool> const &);

template Array<Float>& casa::operator/=<Float>(Array<Float>&, MaskedArray<Float> const&);
template MaskedArray<Float> const& casa::operator*=<Float>(MaskedArray<Float> const&, Float const&);
template MaskedArray<Float> const& casa::operator*=<Float>(MaskedArray<Float> const&, Array<Float> const&);
template MaskedArray<Float> const& casa::operator/=<Float>(MaskedArray<Float> const&, Float const&);
template MaskedArray<Float> casa::operator+<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&);
template MaskedArray<Float> casa::operator-<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&);
template MaskedArray<Float> casa::operator-<Float>(MaskedArray<Float> const&, Array<Float> const&);

template MaskedArray<Float> casa::operator/<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&);

template MaskedArray<Float> casa::operator*<Float>(MaskedArray<Float> const&, MaskedArray<Float> const&);
template MaskedArray<Float> casa::operator*<Float>(MaskedArray<Float> const&, Array<Float> const&);
template MaskedArray<Float> casa::operator*<Float>(Array<Float> const&, MaskedArray<Float> const&);
template MaskedArray<Float> casa::operator*<Float>(Float const&, MaskedArray<Float> const&);
template Float casa::stddev<Float>(MaskedArray<Float> const&);
template Float casa::median<Float>(MaskedArray<Float> const&, Bool, Bool);
template Float casa::sumsquares<Float>(MaskedArray<Float> const&);
template Float casa::avdev<Float>(MaskedArray<Float> const&);

template void LatticeUtilities::bin(MaskedArray<float>&, MaskedArray<float> const&, uInt, uInt);

template class FrequencyAligner<Float>;

template class BaseMappedArrayEngine<Float, Float>;

//#include "MathUtils2.cpp"
//namespace mathutil {
//  template void hanning(Vector<Float>&, Vector<Bool>&,
//			const Vector<Float>&,
//			const Vector<Bool>&,
//			Bool, Bool);
//}

