Numerics library
来自cppreference.com
< cpp
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
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.
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. (函数模板) |
总结了一系列的元素 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. (函数模板) | |
计算的内积的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. (函数模板) | |
计算的范围内的相邻元件之间的差异 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. (函数模板) | |
计算的部分和一定范围的元素 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. (函数模板) |
[编辑] 伪随机数生成
头
random
定义伪随机数生成器和数值分布。头cstdlib
还包括通过C-风格的随机数生成std::srand和std::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.
You can help to correct and verify the translation. Click here for instructions.
[编辑] 编译时间合理的算法 (C++11 起)
头
ratio
提供类型和用于操纵和存储编译时间比率的函数.Original:
The header
ratio
provides 类型和用于操纵和存储编译时间比率的函数.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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.
You can help to correct and verify the translation. Click here for instructions.