Skip to content

Commit c19418c

Browse files
committed
Add more missing std:: prefixes
1 parent 891d612 commit c19418c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+141
-141
lines changed

src/analysis/network/qgsvectorlayerdirector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class QgsPointCompare
5050
double tx1 = std::ceil( p1.x() / mTolerance );
5151
double tx2 = std::ceil( p2.x() / mTolerance );
5252
if ( tx1 == tx2 )
53-
return ceil( p1.y() / mTolerance ) < std::ceil( p2.y() / mTolerance );
53+
return std::ceil( p1.y() / mTolerance ) < std::ceil( p2.y() / mTolerance );
5454
return tx1 < tx2;
5555
}
5656

src/analysis/raster/qgsalignraster.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ static double floor_with_tolerance( double value )
4040
if ( std::fabs( value - std::round( value ) ) < 1e-6 )
4141
return std::round( value );
4242
else
43-
return floor( value );
43+
return std::floor( value );
4444
}
4545

4646
static double fmod_with_tolerance( double num, double denom )

src/analysis/raster/qgshillshadefilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ float QgsHillshadeFilter::processNineCellWindow( float *x11, float *x21, float *
3838
}
3939

4040
float zenith_rad = mLightAngle * M_PI / 180.0;
41-
float slope_rad = atan( std::sqrt( derX * derX + derY * derY ) );
41+
float slope_rad = std::atan( std::sqrt( derX * derX + derY * derY ) );
4242
float azimuth_rad = mLightAzimuth * M_PI / 180.0;
4343
float aspect_rad = 0;
4444
if ( derX == 0 && derY == 0 ) //aspect undefined, take a neutral value. Better solutions?

src/analysis/raster/qgskde.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ double QgsKernelDensityEstimation::quarticKernel( const double distance, const d
330330
return k * ( 15. / 16. ) * std::pow( 1. - std::pow( distance / bandwidth, 2 ), 2 );
331331
}
332332
case OutputRaw:
333-
return pow( 1. - std::pow( distance / bandwidth, 2 ), 2 );
333+
return std::pow( 1. - std::pow( distance / bandwidth, 2 ), 2 );
334334
}
335335
return 0.0; //no, seriously, I told you NO WARNINGS!
336336
}
@@ -348,7 +348,7 @@ double QgsKernelDensityEstimation::triweightKernel( const double distance, const
348348
return k * ( 35. / 32. ) * std::pow( 1. - std::pow( distance / bandwidth, 2 ), 3 );
349349
}
350350
case OutputRaw:
351-
return pow( 1. - std::pow( distance / bandwidth, 2 ), 3 );
351+
return std::pow( 1. - std::pow( distance / bandwidth, 2 ), 3 );
352352
}
353353
return 0.0; // this is getting ridiculous... don't you ever listen to a word I say?
354354
}

src/analysis/raster/qgsrastermatrix.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,16 @@ bool QgsRasterMatrix::oneArgumentOperation( OneArgOperator op )
226226
mData[i] = std::cos( value );
227227
break;
228228
case opTAN:
229-
mData[i] = tan( value );
229+
mData[i] = std::tan( value );
230230
break;
231231
case opASIN:
232-
mData[i] = asin( value );
232+
mData[i] = std::asin( value );
233233
break;
234234
case opACOS:
235-
mData[i] = acos( value );
235+
mData[i] = std::acos( value );
236236
break;
237237
case opATAN:
238-
mData[i] = atan( value );
238+
mData[i] = std::atan( value );
239239
break;
240240
case opSIGN:
241241
mData[i] = -value;
@@ -292,7 +292,7 @@ double QgsRasterMatrix::calculateTwoArgumentOp( TwoArgOperator op, double arg1,
292292
}
293293
else
294294
{
295-
return pow( arg1, arg2 );
295+
return std::pow( arg1, arg2 );
296296
}
297297
case opEQ:
298298
return ( arg1 == arg2 ? 1.0 : 0.0 );

src/analysis/raster/qgsrelief.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ bool QgsRelief::exportFrequencyDistributionToCsv( const QString &file )
560560
//log10 transformation for all frequency values
561561
for ( int i = 0; i < 252; ++i )
562562
{
563-
frequency[i] = log10( frequency[i] );
563+
frequency[i] = std::log10( frequency[i] );
564564
}
565565

566566
//write out frequency values to csv file for debugging
@@ -651,7 +651,7 @@ QList< QgsRelief::ReliefColor > QgsRelief::calculateOptimizedReliefClasses()
651651
//log10 transformation for all frequency values
652652
for ( int i = 0; i < 252; ++i )
653653
{
654-
frequency[i] = log10( frequency[i] );
654+
frequency[i] = std::log10( frequency[i] );
655655
}
656656

657657
//start with 9 uniformly distributed classes

src/analysis/raster/qgsruggednessfilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ float QgsRuggednessFilter::processNineCellWindow( float *x11, float *x21, float
8383
sum += ( *x33 - *x22 ) * ( *x33 - *x22 );
8484
}
8585

86-
return sqrt( sum );
86+
return std::sqrt( sum );
8787
}
8888

src/analysis/raster/qgsslopefilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ float QgsSlopeFilter::processNineCellWindow( float *x11, float *x21, float *x31,
3434
return mOutputNodataValue;
3535
}
3636

37-
return atan( std::sqrt( derX * derX + derY * derY ) ) * 180.0 / M_PI;
37+
return std::atan( std::sqrt( derX * derX + derY * derY ) ) * 180.0 / M_PI;
3838
}
3939

src/app/dwg/qgsdwgimporter.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ bool QgsDwgImporter::curveFromLWPolyline( const DRW_LWPolyline &data, QgsCompoun
14411441
{
14421442
size_t i1 = ( i + 1 ) % vertexnum;
14431443

1444-
double a = 2.0 * atan( data.vertlist[i]->bulge );
1444+
double a = 2.0 * std::atan( data.vertlist[i]->bulge );
14451445
double dx = data.vertlist[i1]->x - data.vertlist[i0]->x;
14461446
double dy = data.vertlist[i1]->y - data.vertlist[i0]->y;
14471447
double c = std::sqrt( dx * dx + dy * dy );
@@ -1552,7 +1552,7 @@ void QgsDwgImporter::addLWPolyline( const DRW_LWPolyline &data )
15521552

15531553
if ( hasBulge )
15541554
{
1555-
double a = 2.0 * atan( data.vertlist[i]->bulge );
1555+
double a = 2.0 * std::atan( data.vertlist[i]->bulge );
15561556
double dx = p1.x() - p0.x();
15571557
double dy = p1.y() - p0.y();
15581558
double c = std::sqrt( dx * dx + dy * dy );
@@ -1753,7 +1753,7 @@ void QgsDwgImporter::addPolyline( const DRW_Polyline &data )
17531753

17541754
if ( hasBulge )
17551755
{
1756-
double a = 2.0 * atan( data.vertlist[i]->bulge );
1756+
double a = 2.0 * std::atan( data.vertlist[i]->bulge );
17571757
double dx = p1.x() - p0.x();
17581758
double dy = p1.y() - p0.y();
17591759
double dz = p1.z() - p0.z();

src/app/qgsdecorationgrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ bool QgsDecorationGrid::getIntervalFromExtent( double *values, bool useXAxis )
787787
if ( !qgsDoubleNear( interval, 0.0 ) )
788788
{
789789
double interval2 = 0;
790-
int factor = std::pow( 10, std::floor( log10( interval ) ) );
790+
int factor = std::pow( 10, std::floor( std::log10( interval ) ) );
791791
if ( factor != 0 )
792792
{
793793
interval2 = std::round( interval / factor ) * factor;

src/app/qgsdecorationscalebar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ void QgsDecorationScaleBar::render( const QgsMapSettings &mapSettings, QgsRender
158158

159159
// Work out the exponent for the number - e.g, 1234 will give 3,
160160
// and .001234 will give -3
161-
double myPowerOf10 = std::floor( log10( myActualSize ) );
161+
double myPowerOf10 = std::floor( std::log10( myActualSize ) );
162162

163163
// snap to integer < 10 times power of 10
164164
if ( mSnapping )

src/app/qgsmeasuredialog.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ QString QgsMeasureDialog::formatDistance( double distance, bool convertUnits ) c
280280
{
281281
// special handling for degrees - because we can't use smaller units (eg m->mm), we need to make sure there's
282282
// enough decimal places to show a usable measurement value
283-
int minPlaces = std::round( log10( 1.0 / distance ) ) + 1;
283+
int minPlaces = std::round( std::log10( 1.0 / distance ) ) + 1;
284284
decimals = qMax( decimals, minPlaces );
285285
}
286286
return QgsDistanceArea::formatDistance( distance, decimals, mDistanceUnits, baseUnit );

src/app/qgspointrotationitem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ void QgsPointRotationItem::paint( QPainter *painter )
5555
if ( mPixmap.width() > 0 && mPixmap.height() > 0 )
5656
{
5757
h = std::sqrt( ( double ) mPixmap.width() * mPixmap.width() + mPixmap.height() * mPixmap.height() ) / 2; //the half of the item diagonal
58-
dAngel = acos( mPixmap.width() / ( h * 2 ) ) * 180 / M_PI; //the diagonal angel of the original rect
58+
dAngel = std::acos( mPixmap.width() / ( h * 2 ) ) * 180 / M_PI; //the diagonal angel of the original rect
5959
x = h * std::cos( ( painterRotation( mRotation ) - dAngel ) * M_PI / 180 );
6060
y = h * std::sin( ( painterRotation( mRotation ) - dAngel ) * M_PI / 180 );
6161
}

src/core/composer/qgscomposeritem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ void QgsComposerItem::setItemRotation( const double r, const bool adjustPosition
10121012
mItemRotation = r;
10131013
if ( mItemRotation >= 360.0 || mItemRotation <= -360.0 )
10141014
{
1015-
mItemRotation = fmod( mItemRotation, 360.0 );
1015+
mItemRotation = std::fmod( mItemRotation, 360.0 );
10161016
}
10171017

10181018
QgsExpressionContext context = createExpressionContext();

src/core/composer/qgscomposermapgrid.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ QString QgsComposerMapGrid::gridAnnotationString( double value, QgsComposerMapGr
14261426
( mGridAnnotationFormat == QgsComposerMapGrid::Decimal || mGridAnnotationFormat == QgsComposerMapGrid::DecimalWithSuffix ) )
14271427
{
14281428
// wrap around longitudes > 180 or < -180 degrees, so that, e.g., "190E" -> "170W"
1429-
double wrappedX = fmod( value, 360.0 );
1429+
double wrappedX = std::fmod( value, 360.0 );
14301430
if ( wrappedX > 180.0 )
14311431
{
14321432
value = wrappedX - 360.0;

src/core/composer/qgscomposernodesitem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ QgsComposerNodesItem::QgsComposerNodesItem( const QString &tagName,
5050
double QgsComposerNodesItem::computeDistance( QPointF pt1,
5151
QPointF pt2 ) const
5252
{
53-
return sqrt( std::pow( pt1.x() - pt2.x(), 2 ) + std::pow( pt1.y() - pt2.y(), 2 ) );
53+
return std::sqrt( std::pow( pt1.x() - pt2.x(), 2 ) + std::pow( pt1.y() - pt2.y(), 2 ) );
5454
}
5555

5656
bool QgsComposerNodesItem::addNode( QPointF pt,

src/core/composer/qgscomposerscalebar.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,15 @@ void QgsComposerScaleBar::refreshDataDefinedProperty( const QgsComposerObject::D
262262
// nextNiceNumber(4573.23, d) = 5000 (d=1) -> 4600 (d=10) -> 4580 (d=100) -> 4574 (d=1000) -> etc
263263
inline double nextNiceNumber( double a, double d = 1 )
264264
{
265-
double s = std::pow( 10.0, std::floor( log10( a ) ) ) / d;
266-
return ceil( a / s ) * s;
265+
double s = std::pow( 10.0, std::floor( std::log10( a ) ) ) / d;
266+
return std::ceil( a / s ) * s;
267267
}
268268

269269
// prevNiceNumber(4573.23, d) = 4000 (d=1) -> 4500 (d=10) -> 4570 (d=100) -> 4573 (d=1000) -> etc
270270
inline double prevNiceNumber( double a, double d = 1 )
271271
{
272-
double s = std::pow( 10.0, std::floor( log10( a ) ) ) / d;
273-
return floor( a / s ) * s;
272+
double s = std::pow( 10.0, std::floor( std::log10( a ) ) ) / d;
273+
return std::floor( a / s ) * s;
274274
}
275275

276276
void QgsComposerScaleBar::refreshSegmentMillimeters()
@@ -473,7 +473,7 @@ void QgsComposerScaleBar::applyDefaultSize( QgsUnitTypes::DistanceUnit u )
473473
}
474474

475475
double segmentWidth = initialUnitsPerSegment / upperMagnitudeMultiplier;
476-
int segmentMagnitude = std::floor( log10( segmentWidth ) );
476+
int segmentMagnitude = std::floor( std::log10( segmentWidth ) );
477477
double unitsPerSegment = upperMagnitudeMultiplier * ( std::pow( 10.0, segmentMagnitude ) );
478478
double multiplier = std::floor( ( widthInSelectedUnits / ( unitsPerSegment * 10.0 ) ) / 2.5 ) * 2.5;
479479

src/core/composer/qgscomposerutils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ void QgsComposerUtils::drawArrowHead( QPainter *p, const double x, const double
4242
QPointF p2 = QPointF( arrowHeadWidth / 2.0, arrowHeadWidth );
4343

4444
QPointF p1Rotated, p2Rotated;
45-
p1Rotated.setX( p1.x() * std::cos( angleRad ) + p1.y() * -sin( angleRad ) );
45+
p1Rotated.setX( p1.x() * std::cos( angleRad ) + p1.y() * -std::sin( angleRad ) );
4646
p1Rotated.setY( p1.x() * std::sin( angleRad ) + p1.y() * std::cos( angleRad ) );
47-
p2Rotated.setX( p2.x() * std::cos( angleRad ) + p2.y() * -sin( angleRad ) );
47+
p2Rotated.setX( p2.x() * std::cos( angleRad ) + p2.y() * -std::sin( angleRad ) );
4848
p2Rotated.setY( p2.x() * std::sin( angleRad ) + p2.y() * std::cos( angleRad ) );
4949

5050
QPolygonF arrowHeadPoly;
@@ -76,7 +76,7 @@ double QgsComposerUtils::angle( QPointF p1, QPointF p2 )
7676
return 0;
7777
}
7878

79-
double angle = acos( ( -yDiff * length ) / ( length * length ) ) * 180 / M_PI;
79+
double angle = std::acos( ( -yDiff * length ) / ( length * length ) ) * 180 / M_PI;
8080
if ( xDiff < 0 )
8181
{
8282
return ( 360 - angle );
@@ -99,7 +99,7 @@ double QgsComposerUtils::normalizedAngle( const double angle )
9999
double clippedAngle = angle;
100100
if ( clippedAngle >= 360.0 || clippedAngle <= -360.0 )
101101
{
102-
clippedAngle = fmod( clippedAngle, 360.0 );
102+
clippedAngle = std::fmod( clippedAngle, 360.0 );
103103
}
104104
if ( clippedAngle < 0.0 )
105105
{

src/core/composer/qgscomposition.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ QPointF QgsComposition::positionOnPage( QPointF position ) const
565565
else
566566
{
567567
//y coordinate is less then the end of the last page
568-
y = fmod( position.y(), ( paperHeight() + spaceBetweenPages() ) );
568+
y = std::fmod( position.y(), ( paperHeight() + spaceBetweenPages() ) );
569569
}
570570
return QPointF( position.x(), y );
571571
}
@@ -1170,7 +1170,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
11701170
{
11711171
if ( pasteInPlacePt )
11721172
{
1173-
newLabel->setItemPosition( newLabel->pos().x(), fmod( newLabel->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1173+
newLabel->setItemPosition( newLabel->pos().x(), std::fmod( newLabel->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
11741174
newLabel->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
11751175
}
11761176
else
@@ -1203,7 +1203,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
12031203
{
12041204
if ( pasteInPlace )
12051205
{
1206-
newMap->setItemPosition( newMap->pos().x(), fmod( newMap->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1206+
newMap->setItemPosition( newMap->pos().x(), std::fmod( newMap->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
12071207
newMap->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
12081208
}
12091209
else
@@ -1247,7 +1247,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
12471247
{
12481248
if ( pasteInPlace )
12491249
{
1250-
newArrow->setItemPosition( newArrow->pos().x(), fmod( newArrow->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1250+
newArrow->setItemPosition( newArrow->pos().x(), std::fmod( newArrow->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
12511251
newArrow->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
12521252
}
12531253
else
@@ -1275,7 +1275,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
12751275
{
12761276
if ( pasteInPlace )
12771277
{
1278-
newScaleBar->setItemPosition( newScaleBar->pos().x(), fmod( newScaleBar->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1278+
newScaleBar->setItemPosition( newScaleBar->pos().x(), std::fmod( newScaleBar->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
12791279
newScaleBar->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
12801280
}
12811281
else
@@ -1305,7 +1305,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
13051305
{
13061306
if ( pasteInPlace )
13071307
{
1308-
newShape->setItemPosition( newShape->pos().x(), fmod( newShape->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1308+
newShape->setItemPosition( newShape->pos().x(), std::fmod( newShape->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
13091309
newShape->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
13101310
}
13111311
else
@@ -1335,7 +1335,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
13351335
{
13361336
if ( pasteInPlace )
13371337
{
1338-
newPolygon->setItemPosition( newPolygon->pos().x(), fmod( newPolygon->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1338+
newPolygon->setItemPosition( newPolygon->pos().x(), std::fmod( newPolygon->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
13391339
newPolygon->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
13401340
}
13411341
else
@@ -1366,7 +1366,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
13661366
{
13671367
if ( pasteInPlace )
13681368
{
1369-
newPolyline->setItemPosition( newPolyline->pos().x(), fmod( newPolyline->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1369+
newPolyline->setItemPosition( newPolyline->pos().x(), std::fmod( newPolyline->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
13701370
newPolyline->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
13711371
}
13721372
else
@@ -1396,7 +1396,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
13961396
{
13971397
if ( pasteInPlace )
13981398
{
1399-
newPicture->setItemPosition( newPicture->pos().x(), fmod( newPicture->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1399+
newPicture->setItemPosition( newPicture->pos().x(), std::fmod( newPicture->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
14001400
newPicture->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
14011401
}
14021402
else
@@ -1424,7 +1424,7 @@ void QgsComposition::addItemsFromXml( const QDomElement &elem, const QDomDocumen
14241424
{
14251425
if ( pasteInPlace )
14261426
{
1427-
newLegend->setItemPosition( newLegend->pos().x(), fmod( newLegend->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
1427+
newLegend->setItemPosition( newLegend->pos().x(), std::fmod( newLegend->pos().y(), ( paperHeight() + spaceBetweenPages() ) ) );
14281428
newLegend->move( pasteInPlacePt->x(), pasteInPlacePt->y() );
14291429
}
14301430
else
@@ -3152,7 +3152,7 @@ void QgsComposition::computeWorldFileParameters( const QRectF &exportRegion, dou
31523152
// rotation matrix
31533153
double r[6];
31543154
r[0] = std::cos( alpha );
3155-
r[1] = -sin( alpha );
3155+
r[1] = -std::sin( alpha );
31563156
r[2] = xCenter * ( 1 - std::cos( alpha ) ) + yCenter * std::sin( alpha );
31573157
r[3] = std::sin( alpha );
31583158
r[4] = std::cos( alpha );

src/core/effects/qgsimageoperation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ double *QgsImageOperation::createGaussianKernel( const int radius )
770770
double result;
771771
for ( int i = 0; i <= radius; ++i )
772772
{
773-
result = coefficient * exp( i * i * expCoefficient );
773+
result = coefficient * std::exp( i * i * expCoefficient );
774774
kernel[ radius - i ] = result;
775775
sum += result;
776776
if ( i > 0 )

0 commit comments

Comments
 (0)