Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer C++ method std::exp over C method exp in doc files #3272

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/tutorials/content/writing_new_classes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ and save the results to disk.
float
G (float x, float sigma)
{
return exp (- (x*x)/(2*sigma*sigma));
return std::exp (- (x*x)/(2*sigma*sigma));
}

int
Expand Down Expand Up @@ -575,7 +575,7 @@ header file becomes:
inline double
kernel (double x, double sigma)
{
return (exp (- (x*x)/(2*sigma*sigma)));
return (std::exp (- (x*x)/(2*sigma*sigma)));
}

double sigma_s_;
Expand Down Expand Up @@ -1118,7 +1118,7 @@ class look like:
inline double
kernel (double x, double sigma)
{
return (exp (- (x*x)/(2*sigma*sigma)));
return (std::exp (- (x*x)/(2*sigma*sigma)));
}

/** \brief The half size of the Gaussian bilateral filter window (e.g., spatial extents in Euclidean). */
Expand Down