MathHelpers.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef MERCURYDPM_MATH_HELPERS_H
6 #define MERCURYDPM_MATH_HELPERS_H
7 
8 #include "Math/ExtendedMath.h"
9 
10 namespace helpers
11 {
15  Mdouble round(Mdouble value, unsigned int precision);
16 
20  std::vector<Mdouble> linspace(Mdouble a, Mdouble b, int N);
21 }
22 
23 #endif // MERCURYDPM_MATH_HELPERS_H
double Mdouble
Definition: GeneralDefine.h:13
Scalar * b
Definition: benchVecAdd.cpp:17
@ N
Definition: constructor.cpp:22
const Scalar * a
Definition: level2_cplx_impl.h:32
squared absolute value
Definition: GlobalFunctions.h:87
Definition: CommandLineHelpers.h:11
std::vector< Mdouble > linspace(Mdouble a, Mdouble b, int N)
creates a 1D linear space partition
Definition: MathHelpers.cc:13
Mdouble round(Mdouble value, unsigned int precision)
rounds a floating point number with a given precision
Definition: MathHelpers.cc:7