⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vcl_cmath.h

📁 InsightToolkit-1.4.0(有大量的优化算法程序)
💻 H
字号:
#ifndef vcl_borland_cmath_h_
#define vcl_borland_cmath_h_
// 1. include system header
#include <cmath>
#undef abs
#include <vcl_iostream.h>
inline double abs(long double  x) { return x >= 0 ? x : -x; vcl_cerr << "abs long double\n";}
inline double abs(double  x) { return x >= 0 ? x : -x;  vcl_cerr << "abs double\n";}
inline float  abs(float x) { return x >= 0 ? x : -x; vcl_cerr << "abs float\n";}

// abs
#undef vcl_abs
#define vcl_abs ::abs
//#endif

// rest of cmath can be defined using generic/vcl_complex.h
#define vcl_generic_cmath_STD std
#include "../generic/vcl_cmath.h"


#endif // vcl_cmath_h_

⌨️ 快捷键说明

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