vcl_cmath.h

来自「InsightToolkit-1.4.0(有大量的优化算法程序)」· C头文件 代码 · 共 17 行

H
17
字号
#ifndef vcl_win32_vc60_cmath_h_
#define vcl_win32_vc60_cmath_h_

#include <cmath>

inline long double abs(long double  x) { return x >= 0 ? x : -x; }
inline double abs(double  x) { return x >= 0 ? x : -x; }
inline float  abs(float x) { return x >= 0 ? x : -x; }
inline float  sqrt(float f) { return float(::sqrt(double(f))); }
inline long double  sqrt(long double f) { return (long double)(::sqrt(double(f))); }

# define vcl_generic_cmath_STD

#include "../generic/vcl_cmath.h"

#endif // vcl_win32_vc60_cmath_h_

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?