Numerics library

来自cppreference.com
< cpp
 
 
Numerics的图书馆
常见的数学函数
浮点环境
复数
数字阵列
伪随机数生成
编译时合理的算法 (C++11)
通用的数值运算
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota(C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
C + +数值解库,包括常用数学函数和类型,以及优化的数字阵列,并支持随机数生成.
Original:
The C++ numerics library includes common mathematical functions and types, as well as optimized numeric arrays and support for random number generation.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

目录

[编辑] 常见的数学函数

cmath提供标准C库数学函数std::fabsstd::sqrtstd::sin.
Original:
The header cmath provides 标准C库数学函数 such as std::fabs, std::sqrt, and std::sin.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 复数

Defined in header <complex>
复数类型
Original:
a complex number type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板)

[编辑] 数字阵列

Defined in header <valarray>
数字阵列和阵列切片
Original:
numeric arrays and array slices
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(类模板)

[编辑] 通用的数值运算

Defined in header <numeric>
(C++11)
填充的范围内连续递增的起始值
Original:
fills a range with successive increments of the starting value
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
总结了一系列的元素
Original:
sums up a range of elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
计算的内积的2的范围内的元素
Original:
computes the inner product of two ranges of elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
计算的范围内的相邻元件之间的差异
Original:
computes the differences between adjacent elements in a range
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]
计算的部分和一定范围的元素
Original:
computes the partial sum of a range of elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(函数模板) [edit]

[编辑] 伪随机数生成

random定义伪随机数生成器和数值分布。头cstdlib还包括通过C-风格的随机数生成std::srandstd::rand.
Original:
The header random defines 伪随机数生成器和数值分布. The header cstdlib also includes C-style random number generation via std::srand and std::rand.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 编译时间合理的算法 (C++11 起)

ratio提供类型和用于操纵和存储编译时间比率的函数.
Original:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[编辑] 浮点环境

fenv定义了标志和相关的特殊浮点状态的功能,如溢出和被零除.
Original:
The header fenv defines 标志和相关的特殊浮点状态的功能, such as overflow and division by zero.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.