tntcmplx.h

来自「本系统采用VC开发.可实现点云数据的处理,图像缩放,生成曲面.」· C头文件 代码 · 共 48 行

H
48
字号
// Template Numerical Toolkit (TNT) for Linear Algebra//// BETA VERSION INCOMPLETE AND SUBJECT TO CHANGE// Please see http://math.nist.gov/tnt for updates//// R. Pozo// Mathematical and Computational Sciences Division// National Institute of Standards and Technology#ifndef TNT_COMPLEX_H#define TNT_COMPLEX_H//---------------------------------------------------------------------//  Definitions for complex number support.  The ANSI C++ proposal //  specifies a templated class for this, e.g. complex<double> or //  complex<float>, but not all compilers currently support this.  TNT//  provides a mechanism to accomodate any complex number class,//  using "DComplex" and "FComplex" names for double-precision//  and single-precision instances, respectively.  For example,//  if your system uses the older "Complex" number class, compile as////   CC -DTNT_DCOMPLEX_TYPE='Complex' //  //  Now DComplex #ifndef TNT_DCOMPLEX_TYPE#define TNT_DCOMPLEX_TYPE complex<double>#endiftypedef TNT_DCOMPLEX_TYPE DComplex;#if 0#ifndef TNT_FCOMPLEX_TYPE#define TNT_FCOMPLEX_TYPE complex<float>#endiftypedef TNT_FCOMPLEX_TYPE FComplex;#endif#endif// TNT_COMPLEX_H

⌨️ 快捷键说明

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