数值库
第 29 章导读:复数、随机数、valarray、<cmath>、数学常数、线性代数和 std::simd 各在哪里,本章常见的几类规则后果,以及本机 libc++ 的实现现状。
本节要点
- 第 29 章收的是围绕数学对象的类型和函数:复数、随机数、
valarray、<cmath>、数学常数、<linalg>和<simd>。accumulate、reduce、gcd这些<numeric>算法在算法章,不在这里。 <complex>的函数结果在数学上无定义或无法表示时是 UB;<cmath>改用 C 的错误报告机制,不是 UB。- 随机数分布的算法由实现定义,同一个种子在不同标准库上可以得到不同的序列;引擎的算法则是完全规定的。
<random>用模板形参的名字表达要求:名为IntType、RealType等的形参只接受规定范围内的类型,否则程序非良构。- 本机 libc++ 还没有
<linalg>、<simd>、philox_engine,<cmath>的constexpr扩展也未实现。
本章地图([numerics.general])#
¶1–¶2 本章描述用于半数值(seminumerical)运算的组件,即围绕数学对象本身的类型和函数,不是对序列的通用算法。表 125 列出各子条款:
| 子条款 | 内容 | 头文件 | 本站笔记 |
|---|---|---|---|
| [numeric.requirements] | complex、valarray 对元素类型的要求 |
— | [numeric.requirements] |
| [cfenv] | 浮点环境:异常标志、舍入模式 | <cfenv> |
[cfenv] |
| [complex.numbers] | complex<T>、超越函数、字面量后缀 |
<complex> |
[complex.numbers] |
| [rand] | 引擎、引擎适配器、分布、random_device、seed_seq |
<random> |
[rand] |
| [numarray] | valarray 与四种切片代理 |
<valarray> |
[numarray] |
| [c.math] | <cmath> 函数、整数 abs、lerp、数学特殊函数 |
<cmath>、<cstdlib> |
[c.math] |
| [numbers] | std::numbers::pi 等数学常数 |
<numbers> |
[numbers] |
| [linalg] | 基于 mdspan 的 BLAS 风格算法 C++26 |
<linalg> |
[linalg] |
| [simd] | 数据并行类型 basic_vec、basic_mask C++26 |
<simd> |
[simd] |
表后还有一个子条款 [numerics.c],即 C23 的 <stdckdint.h>:带溢出检查的 ckd_add、ckd_sub、ckd_mul。
¶2 的导言仍然提到 generalized numeric algorithms,但 accumulate、reduce、inclusive_scan、gcd、midpoint、饱和算术等早已移到算法章的 [numeric.ops] 和 [numeric.sat]。查找它们要去那里。
还有一些设施常被误以为在本章:
| 设施 | 实际位置 |
|---|---|
numeric_limits、<cfloat>、<climits> |
语言支持库 [support.limits] |
<stdfloat> 的 float16_t 等别名 |
[support.arith.types],类型本身在 [basic.extended.fp] |
<bit>(popcount、bit_cast 等) |
工具库 [bit] |
to_chars、from_chars |
文本处理 [charconv] |
shuffle、sample、ranges::generate_random |
算法章 [alg.random.shuffle]、[alg.random.sample]、[alg.rand.generate] |
mdspan 本身 |
容器章 [views.multidim] |
本章常见的几类规则后果#
数值库大量借用数学记号,并且常把数学上的失败直接规定为某种后果。下面几种模式在各页反复出现。
结果无定义或无法表示#
auto z = std::log(std::complex<double>(0, 0));
// <complex>:ln 0 在数学上无定义,按 ¶3 是 UB
double d = std::log(0.0);
// <cmath>:极点错误,返回 -HUGE_VAL
// 并按 math_errhandling 报告,不是 UB[complex.numbers] 的 [complex.numbers.general] ¶3 规定,复数函数的结果在数学上无定义,或者超出其类型的可表示范围时,行为未定义。这比核心语言还严。按 [expr.pre]/4,内建算术表达式只有在数学结果既不可表示、也不是该类型拥有的无穷或 NaN 时才是 UB,所以对 IEEE 浮点类型,内建运算里只剩除以零是 UB。<complex> 没有这层豁免。本机 libc++ 实际上按 C 附录 G 的约定让上例返回 (-inf, 0),但标准不保证。
<cmath> 沿用 C 的 math_errhandling 机制报告定义域错误和值域错误(见 [c.math]),不是 UB。但整数的 std::abs(INT_MIN) 仍是 UB,因为 C 对 abs 就是这样规定的。
算法由实现定义#
std::mt19937 eng(42);
std::uniform_int_distribution<int> d(1, 6);
int x = d(eng); // 不同标准库可能给出不同的 x[rand.dist] 的 [rand.dist.general] ¶3 规定,每个分布如何从均匀的随机比特生成目标分布,由实现定义。所以同一个引擎、同一个种子,uniform_int_distribution 在 libc++、libstdc++、MSVC STL 上的结果可以不同。
引擎则相反:mt19937 的算法完全规定,[rand.predef] 甚至规定了默认构造的引擎第 10000 次调用必须得到的值。需要跨平台复现随机序列时,只能依赖引擎的输出,自己写从比特到分布的变换。default_random_engine 是哪个引擎、random_device 的熵从哪里来,也都由实现定义。
模板形参的名字携带要求#
[rand.req.genl] ¶1 规定,<random> 中名为 RealType、IntType、UIntType、URBG、Sseq、Engine 的模板形参自动带有相应的要求。前三者的实参不在允许的类型集合里时,程序非良构。例如 IntType 只接受标准整数类型、宽度在 char 与 long long 之间的扩展整数类型,以及实现自行列入的其他整数类型。char 和 bool 不是标准整数类型,只有实现把它们列入时才可以使用;本机 libc++ 用 static_assert 拒绝 uniform_int_distribution<char>。
[linalg] 用同样的手法([linalg.algs.reqs]):名为 Triangle、DiagonalStorage、ExecutionPolicy 的形参各有约束。读这些函数签名时,形参名本身就是要求的一部分。
Mandates、Constraints 与 Preconditions#
与其他库章一样,Mandates 不满足时程序非良构,必须诊断;Constraints 不满足时,这个重载退出重载决议,没有任何诊断;Preconditions 不满足时是 UB([structure.specifications])。本章有几处值得留意:
- 实例化
std::numbers::pi_v<int>这样的主模板,程序非良构([math.constants] ¶3); - 实例化
complex<int>,效果是未指明的:不保证能用,也不要求诊断([numeric.requirements]); valarray::operator[]的越界检查是加固前置条件 C++26,加固实现下越界会被检查并终止(hardened precondition);<linalg>用 Mandates 检查静态 extent 是否兼容,用 Preconditions 约束动态 extent。
实现现状(本机 Clang 23 + libc++)#
| 设施 | 状态 |
|---|---|
<complex> 基本功能、字面量 |
已实现;C++26 的结构化绑定支持也已实现 |
<complex>、<cmath> 的 C++23/26 constexpr 扩展 |
未实现:std::floor 等在常量表达式中被拒绝 |
<random> 的经典引擎与分布 |
已实现;default_random_engine 是 minstd_rand |
philox_engine、ranges::generate_random C++26 |
未实现 |
generate_canonical 的新规格 |
未采用,仍是旧算法,可能返回 1.0(见 [rand.util]) |
<valarray> |
已实现,使用表达式模板 |
| 数学特殊函数 | 只有 hermite,没有 riemann_zeta、cyl_bessel_j 等 |
<linalg>、<simd> C++26 |
没有这两个头文件 |
<stdckdint.h> |
由 Clang 自带的 C 头文件提供,ckd_* 是宏,不是标准要求的函数模板 |
条款一览
- 29.1General 概述[numerics.general]
- 29.2Numeric type requirements 数值类型要求[numeric.requirements]完成
- 29.3The floating-point environment 浮点环境[cfenv]完成
- 29.4Complex numbers 复数[complex.numbers]完成
- 29.4.1General 概述[complex.numbers.general]
- 29.4.2Header <complex> synopsis 头文件 <complex> 概要[complex.syn]
- 29.4.3Class template complex 类模板 complex[complex]
- 29.4.4Member functions 成员函数[complex.members]
- 29.4.5Member operators 成员运算符[complex.member.ops]
- 29.4.6Non-member operations 非成员操作[complex.ops]
- 29.4.7Value operations 值操作[complex.value.ops]
- 29.4.8Transcendentals 超越函数[complex.transcendentals]
- 29.4.9Tuple interface 元组接口[complex.tuple]
- 29.4.10Additional overloads 附加重载[cmplx.over]
- 29.4.11Suffixes for complex number literals 复数字面量后缀[complex.literals]
- 29.5Random number generation 随机数生成[rand]完成
- 29.5.1General 概述[rand.general]
- 29.5.2Header <random> synopsis 头文件 <random> 概要[rand.synopsis]
- 29.5.3Requirements 要求[rand.req]完成
- 29.5.3.1General requirements 一般要求[rand.req.genl]
- 29.5.3.2Seed sequence requirements 种子序列要求[rand.req.seedseq]
- 29.5.3.3Uniform random bit generator requirements 均匀随机位生成器要求[rand.req.urng]
- 29.5.3.4Random number engine requirements 随机数引擎要求[rand.req.eng]
- 29.5.3.5Random number engine adaptor requirements 随机数引擎适配器要求[rand.req.adapt]
- 29.5.3.6Random number distribution requirements 随机数分布要求[rand.req.dist]
- 29.5.4Random number engine class templates 随机数引擎类模板[rand.eng]完成
- 29.5.4.1General 概述[rand.eng.general]
- 29.5.4.2Class template linear_congruential_engine 类模板 linear_congruential_engine[rand.eng.lcong]
- 29.5.4.3Class template mersenne_twister_engine 类模板 mersenne_twister_engine[rand.eng.mers]
- 29.5.4.4Class template subtract_with_carry_engine 类模板 subtract_with_carry_engine[rand.eng.sub]
- 29.5.4.5Class template philox_engine 类模板 philox_engine[rand.eng.philox]
- 29.5.5Random number engine adaptor class templates 随机数引擎适配器类模板[rand.adapt]
- 29.5.5.1General 概述[rand.adapt.general]
- 29.5.5.2Class template discard_block_engine 类模板 discard_block_engine[rand.adapt.disc]
- 29.5.5.3Class template independent_bits_engine 类模板 independent_bits_engine[rand.adapt.ibits]
- 29.5.5.4Class template shuffle_order_engine 类模板 shuffle_order_engine[rand.adapt.shuf]
- 29.5.6Engines and engine adaptors with predefined parameters 具有预定义参数的引擎与引擎适配器[rand.predef]
- 29.5.7Class random_device 类 random_device[rand.device]完成
- 29.5.8Utilities 工具[rand.util]完成
- 29.5.9Random number distribution class templates 随机数分布类模板[rand.dist]完成
- 29.5.9.1General 概述[rand.dist.general]
- 29.5.9.2Uniform distributions 均匀分布[rand.dist.uni]
- 29.5.9.3Bernoulli distributions 伯努利分布[rand.dist.bern]
- 29.5.9.3.1Class bernoulli_distribution 类 bernoulli_distribution[rand.dist.bern.bernoulli]
- 29.5.9.3.2Class template binomial_distribution 类模板 binomial_distribution[rand.dist.bern.bin]
- 29.5.9.3.3Class template geometric_distribution 类模板 geometric_distribution[rand.dist.bern.geo]
- 29.5.9.3.4Class template negative_binomial_distribution 类模板 negative_binomial_distribution[rand.dist.bern.negbin]
- 29.5.9.4Poisson distributions 泊松分布[rand.dist.pois]
- 29.5.9.4.1Class template poisson_distribution 类模板 poisson_distribution[rand.dist.pois.poisson]
- 29.5.9.4.2Class template exponential_distribution 类模板 exponential_distribution[rand.dist.pois.exp]
- 29.5.9.4.3Class template gamma_distribution 类模板 gamma_distribution[rand.dist.pois.gamma]
- 29.5.9.4.4Class template weibull_distribution 类模板 weibull_distribution[rand.dist.pois.weibull]
- 29.5.9.4.5Class template extreme_value_distribution 类模板 extreme_value_distribution[rand.dist.pois.extreme]
- 29.5.9.5Normal distributions 正态分布[rand.dist.norm]
- 29.5.9.5.1Class template normal_distribution 类模板 normal_distribution[rand.dist.norm.normal]
- 29.5.9.5.2Class template lognormal_distribution 类模板 lognormal_distribution[rand.dist.norm.lognormal]
- 29.5.9.5.3Class template chi_squared_distribution 类模板 chi_squared_distribution[rand.dist.norm.chisq]
- 29.5.9.5.4Class template cauchy_distribution 类模板 cauchy_distribution[rand.dist.norm.cauchy]
- 29.5.9.5.5Class template fisher_f_distribution 类模板 fisher_f_distribution[rand.dist.norm.f]
- 29.5.9.5.6Class template student_t_distribution 类模板 student_t_distribution[rand.dist.norm.t]
- 29.5.9.6Sampling distributions 抽样分布[rand.dist.samp]
- 29.5.9.6.1Class template discrete_distribution 类模板 discrete_distribution[rand.dist.samp.discrete]
- 29.5.9.6.2Class template piecewise_constant_distribution 类模板 piecewise_constant_distribution[rand.dist.samp.pconst]
- 29.5.9.6.3Class template piecewise_linear_distribution 类模板 piecewise_linear_distribution[rand.dist.samp.plinear]
- 29.5.10Low-quality random number generation 低质量随机数生成[c.math.rand]
- 29.6Numeric arrays 数值数组[numarray]完成
- 29.6.1Header <valarray> synopsis 头文件 <valarray> 概要[valarray.syn]
- 29.6.2Class template valarray 类模板 valarray[template.valarray]
- 29.6.2.1Overview 概览[template.valarray.overview]
- 29.6.2.2Constructors 构造函数[valarray.cons]
- 29.6.2.3Assignment 赋值[valarray.assign]
- 29.6.2.4Element access 元素访问[valarray.access]
- 29.6.2.5Subset operations 子集操作[valarray.sub]
- 29.6.2.6Unary operators 一元运算符[valarray.unary]
- 29.6.2.7Compound assignment 复合赋值[valarray.cassign]
- 29.6.2.8Range access 范围访问[valarray.range]
- 29.6.2.9Member functions 成员函数[valarray.members]
- 29.6.3valarray non-member operations valarray 非成员操作[valarray.nonmembers]
- 29.6.4Class slice 类 slice[class.slice]
- 29.6.5Class template slice_array 类模板 slice_array[template.slice.array]
- 29.6.6The gslice class gslice 类[class.gslice]
- 29.6.7Class template gslice_array 类模板 gslice_array[template.gslice.array]
- 29.6.8Class template mask_array 类模板 mask_array[template.mask.array]
- 29.6.9Class template indirect_array 类模板 indirect_array[template.indirect.array]
- 29.7Mathematical functions for floating-point types 浮点类型的数学函数[c.math]完成
- 29.7.1Header <cmath> synopsis 头文件 <cmath> 概要[cmath.syn]
- 29.7.2Absolute values 绝对值[c.math.abs]
- 29.7.3Three-dimensional hypotenuse 三维斜边[c.math.hypot3]
- 29.7.4Linear interpolation 线性插值[c.math.lerp]
- 29.7.5Classification / comparison functions 分类/比较函数[c.math.fpclass]
- 29.7.6Mathematical special functions 数学特殊函数[sf.cmath]
- 29.7.6.1General 概述[sf.cmath.general]
- 29.7.6.2Associated Laguerre polynomials 连带拉盖尔多项式[sf.cmath.assoc.laguerre]
- 29.7.6.3Associated Legendre functions 连带勒让德函数[sf.cmath.assoc.legendre]
- 29.7.6.4Beta function Beta 函数[sf.cmath.beta]
- 29.7.6.5Complete elliptic integral of the first kind 第一类完全椭圆积分[sf.cmath.comp.ellint.1]
- 29.7.6.6Complete elliptic integral of the second kind 第二类完全椭圆积分[sf.cmath.comp.ellint.2]
- 29.7.6.7Complete elliptic integral of the third kind 第三类完全椭圆积分[sf.cmath.comp.ellint.3]
- 29.7.6.8Regular modified cylindrical Bessel functions 第一类修正柱贝塞尔函数[sf.cmath.cyl.bessel.i]
- 29.7.6.9Cylindrical Bessel functions of the first kind 第一类柱贝塞尔函数[sf.cmath.cyl.bessel.j]
- 29.7.6.10Irregular modified cylindrical Bessel functions 第二类修正柱贝塞尔函数[sf.cmath.cyl.bessel.k]
- 29.7.6.11Cylindrical Neumann functions 柱诺伊曼函数[sf.cmath.cyl.neumann]
- 29.7.6.12Incomplete elliptic integral of the first kind 第一类不完全椭圆积分[sf.cmath.ellint.1]
- 29.7.6.13Incomplete elliptic integral of the second kind 第二类不完全椭圆积分[sf.cmath.ellint.2]
- 29.7.6.14Incomplete elliptic integral of the third kind 第三类不完全椭圆积分[sf.cmath.ellint.3]
- 29.7.6.15Exponential integral 指数积分[sf.cmath.expint]
- 29.7.6.16Hermite polynomials 埃尔米特多项式[sf.cmath.hermite]
- 29.7.6.17Laguerre polynomials 拉盖尔多项式[sf.cmath.laguerre]
- 29.7.6.18Legendre polynomials 勒让德多项式[sf.cmath.legendre]
- 29.7.6.19Riemann zeta function 黎曼 ζ 函数[sf.cmath.riemann.zeta]
- 29.7.6.20Spherical Bessel functions of the first kind 第一类球贝塞尔函数[sf.cmath.sph.bessel]
- 29.7.6.21Spherical associated Legendre functions 球连带勒让德函数[sf.cmath.sph.legendre]
- 29.7.6.22Spherical Neumann functions 球诺伊曼函数[sf.cmath.sph.neumann]
- 29.8Numbers 数(numbers)[numbers]完成
- 29.9Basic linear algebra algorithms 基本线性代数算法[linalg]草稿
- 29.9.1Overview 概览[linalg.overview]
- 29.9.2Header <linalg> synopsis 头文件 <linalg> 概要[linalg.syn]
- 29.9.3General 概述[linalg.general]
- 29.9.4Requirements 要求[linalg.reqs]
- 29.9.5Tag classes 标签类[linalg.tags]
- 29.9.6Layouts for packed matrix types 压缩矩阵类型的布局[linalg.layout.packed]
- 29.9.7Exposition-only helpers 仅用于阐述的辅助设施[linalg.helpers]
- 29.9.7.1abs-if-needed abs-if-needed[linalg.helpers.abs]
- 29.9.7.2conj-if-needed conj-if-needed[linalg.helpers.conj]
- 29.9.7.3real-if-needed real-if-needed[linalg.helpers.real]
- 29.9.7.4imag-if-needed imag-if-needed[linalg.helpers.imag]
- 29.9.7.5Argument concepts 实参概念[linalg.helpers.concepts]
- 29.9.7.6Mandates 强制要求[linalg.helpers.mandates]
- 29.9.7.7Preconditions 前置条件[linalg.helpers.precond]
- 29.9.8Scaled in-place transformation 原位缩放变换[linalg.scaled]
- 29.9.9Conjugated in-place transformation 原位共轭变换[linalg.conj]
- 29.9.10Transpose in-place transformation 原位转置变换[linalg.transp]
- 29.9.10.1Introduction 引言[linalg.transp.intro]
- 29.9.10.2Exposition-only helpers for layout_transpose and transposed layout_transpose 与 transposed 的仅用于阐述的辅助设施[linalg.transp.helpers]
- 29.9.10.3Class template layout_transpose 类模板 layout_transpose[linalg.transp.layout.transpose]
- 29.9.10.4Function template transposed 函数模板 transposed[linalg.transp.transposed]
- 29.9.11Conjugate transpose in-place transform 原位共轭转置变换[linalg.conjtransposed]
- 29.9.12Algorithm requirements based on template parameter name 基于模板形参名的算法要求[linalg.algs.reqs]
- 29.9.13BLAS 1 algorithms BLAS 1 级算法[linalg.algs.blas1]
- 29.9.13.1Complexity 复杂度[linalg.algs.blas1.complexity]
- 29.9.13.2Givens rotations Givens 旋转[linalg.algs.blas1.givens]
- 29.9.13.3Swap matrix or vector elements 交换矩阵或向量元素[linalg.algs.blas1.swap]
- 29.9.13.4Multiply the elements of an object in place by a scalar 原位以标量乘对象的元素[linalg.algs.blas1.scal]
- 29.9.13.5Copy elements of one matrix or vector into another 将一个矩阵或向量的元素复制到另一个[linalg.algs.blas1.copy]
- 29.9.13.6Add vectors or matrices elementwise 按元素相加向量或矩阵[linalg.algs.blas1.add]
- 29.9.13.7Dot product of two vectors 两个向量的点积[linalg.algs.blas1.dot]
- 29.9.13.8Euclidean norm of a vector 向量的欧几里得范数[linalg.algs.blas1.nrm2]
- 29.9.13.9Sum of absolute values of vector elements 向量元素绝对值之和[linalg.algs.blas1.asum]
- 29.9.13.10Index of maximum absolute value of vector elements 向量元素绝对值最大者的索引[linalg.algs.blas1.iamax]
- 29.9.13.11Frobenius norm of a matrix 矩阵的 Frobenius 范数[linalg.algs.blas1.matfrobnorm]
- 29.9.13.12One norm of a matrix 矩阵的 1-范数[linalg.algs.blas1.matonenorm]
- 29.9.13.13Infinity norm of a matrix 矩阵的无穷范数[linalg.algs.blas1.matinfnorm]
- 29.9.14BLAS 2 algorithms BLAS 2 级算法[linalg.algs.blas2]
- 29.9.14.1General matrix-vector product 一般矩阵-向量乘积[linalg.algs.blas2.gemv]
- 29.9.14.2Symmetric matrix-vector product 对称矩阵-向量乘积[linalg.algs.blas2.symv]
- 29.9.14.3Hermitian matrix-vector product 埃尔米特矩阵-向量乘积[linalg.algs.blas2.hemv]
- 29.9.14.4Triangular matrix-vector product 三角矩阵-向量乘积[linalg.algs.blas2.trmv]
- 29.9.14.5Solve a triangular linear system 求解三角线性方程组[linalg.algs.blas2.trsv]
- 29.9.14.6Rank-1 (outer product) update of a matrix 矩阵的秩 1(外积)更新[linalg.algs.blas2.rank1]
- 29.9.14.7Symmetric or Hermitian Rank-1 (outer product) update of a matrix 对称或埃尔米特矩阵的秩 1(外积)更新[linalg.algs.blas2.symherrank1]
- 29.9.14.8Symmetric and Hermitian rank-2 matrix updates 对称与埃尔米特矩阵的秩 2 更新[linalg.algs.blas2.rank2]
- 29.9.15BLAS 3 algorithms BLAS 3 级算法[linalg.algs.blas3]
- 29.9.15.1General matrix-matrix product 一般矩阵-矩阵乘积[linalg.algs.blas3.gemm]
- 29.9.15.2Symmetric, Hermitian, and triangular matrix-matrix product 对称、埃尔米特与三角矩阵-矩阵乘积[linalg.algs.blas3.xxmm]
- 29.9.15.3In-place triangular matrix-matrix product 原位三角矩阵-矩阵乘积[linalg.algs.blas3.trmm]
- 29.9.15.4Rank-k update of a symmetric or Hermitian matrix 对称或埃尔米特矩阵的秩 k 更新[linalg.algs.blas3.rankk]
- 29.9.15.5Rank-2k update of a symmetric or Hermitian matrix 对称或埃尔米特矩阵的秩 2k 更新[linalg.algs.blas3.rank2k]
- 29.9.15.6Solve multiple triangular linear systems 求解多个三角线性方程组[linalg.algs.blas3.trsm]
- 29.9.15.7Solve multiple triangular linear systems in-place 原位求解多个三角线性方程组[linalg.algs.blas3.inplacetrsm]
- 29.10Data-parallel types 数据并行类型[simd]草稿
- 29.10.1General 概述[simd.general]
- 29.10.2Exposition-only types, variables, and concepts 仅用于阐述的类型、变量与概念[simd.expos]
- 29.10.3Header <simd> synopsis 头文件 <simd> 概要[simd.syn]
- 29.10.4Type traits 类型特征[simd.traits]
- 29.10.5Load and store flags 加载与存储标志[simd.flags]
- 29.10.6Class template simd-iterator 类模板 simd-iterator[simd.iterator]
- 29.10.7Class template basic_vec 类模板 basic_vec[simd.class]
- 29.10.8basic_vec non-member operations basic_vec 非成员操作[simd.nonmembers]
- 29.10.8.1Binary operators 二元运算符[simd.binary]
- 29.10.8.2Compound assignment 复合赋值[simd.cassign]
- 29.10.8.3Comparison operators 比较运算符[simd.comparison]
- 29.10.8.4Exposition-only conditional operators 仅用于阐述的条件运算符[simd.cond]
- 29.10.8.5Reductions 归约[simd.reductions]
- 29.10.8.6Load and store functions 加载与存储函数[simd.loadstore]
- 29.10.8.7Static permute 静态置换[simd.permute.static]
- 29.10.8.8Dynamic permute 动态置换[simd.permute.dynamic]
- 29.10.8.9Mask permute 掩码置换[simd.permute.mask]
- 29.10.8.10Memory permute 内存置换[simd.permute.memory]
- 29.10.8.11Creation 创建[simd.creation]
- 29.10.8.12Algorithms 算法[simd.alg]
- 29.10.8.13Mathematical functions 数学函数[simd.math]
- 29.10.8.14Bit manipulation 位操作[simd.bit]
- 29.10.8.15Complex math 复数数学[simd.complex.math]
- 29.10.9Class template basic_mask 类模板 basic_mask[simd.mask.class]
- 29.10.10basic_mask non-member operations basic_mask 非成员操作[simd.mask.nonmembers]
- 29.11C compatibility C 兼容性[numerics.c]完成