mathkit.h

来自「粗糙集应用软件」· C头文件 代码 · 共 42 行

H
42
字号
//-------------------------------------------------------------------
// Author........: Aleksander 豩rn
// Date..........:
// Description...:
// Revisions.....: This used to be a class with all static methods.
//                 I made it a namespace instead because some methods
//                 should be templatized and some not, and currently
//                 the compiler does not support member templates.
//                 A library client would use the class in an
//                 identical manner, though, by prefixing all calls
//                 with "MathKit::".
//===================================================================

#ifndef __MATHKIT_H__
#define __MATHKIT_H__

#include <copyright.h>

#include <kernel/utilities/rng.h>

#include <kernel/basic/macros.h>
#include <kernel/basic/undefined.h>
#include <kernel/basic/vector.h>
#include <kernel/basic/map.h>
#include <kernel/basic/algorithm.h>

#include <kernel/system/math.h>

//-------------------------------------------------------------------
// Begin namespace MathKit
//===================================================================

namespace MathKit {

//-------------------------------------------------------------------
// Method........: Round
// Author........: Aleksander 豩rn
// Date..........:
// Description...: Rounds a floating point number to the nearest
//                 integer. Handles negative values.
// Comments......:
// Revisions.....: A

⌨️ 快捷键说明

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