Skip to content
Snippets Groups Projects
Commit d58a45d2 authored by Ger van Diepen's avatar Ger van Diepen
Browse files

%[ER: 247]%

Make it compile/link well with new dcomplex
parent dd8e712c
No related branches found
No related tags found
No related merge requests found
......@@ -375,3 +375,4 @@ LOFAR::BlobIStream& operator>> (LOFAR::BlobIStream& bs, MeqMatrix& vec)
#include <casa/Utilities/Copy.cc>
#include <casa/Utilities/CountedPtr.cc>
template class Matrix<dcomplex>;
template class Array<dcomplex>;
......@@ -27,6 +27,7 @@
#include <MNS/MeqMatrixComplexArr.h>
#include <Common/Debug.h>
#include <casa/BasicSL/Constants.h>
#include <cmath>
using namespace casa;
......@@ -249,7 +250,7 @@ MeqMatrixRep* MeqMatrixRealArr::sin()
{
int n = nelements();
for (int i=0; i<n; i++) {
itsValue[i] = ::sin(itsValue[i]);
itsValue[i] = std::sin(itsValue[i]);
}
return this;
}
......@@ -258,7 +259,7 @@ MeqMatrixRep* MeqMatrixRealArr::cos()
{
int n = nelements();
for (int i=0; i<n; i++) {
itsValue[i] = ::cos(itsValue[i]);
itsValue[i] = std::cos(itsValue[i]);
}
return this;
}
......@@ -267,7 +268,7 @@ MeqMatrixRep* MeqMatrixRealArr::exp()
{
int n = nelements();
for (int i=0; i<n; i++) {
itsValue[i] = ::exp(itsValue[i]);
itsValue[i] = std::exp(itsValue[i]);
}
return this;
}
......@@ -285,7 +286,7 @@ MeqMatrixRep* MeqMatrixRealArr::sqrt()
{
int n = nelements();
for (int i=0; i<n; i++) {
itsValue[i] = ::sqrt(itsValue[i]);
itsValue[i] = std::sqrt(itsValue[i]);
}
return this;
}
......
......@@ -25,6 +25,7 @@
#include <Common/Debug.h>
#include <Common/lofar_vector.h>
#include <casa/Utilities/BinarySearch.h>
#include <cmath>
MeqParmSingle::MeqParmSingle (const string& name, double value)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment