cppreference.com
建立用戶
登入
名字空間
頁面
討論
變換
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
檢視
檢視
編輯
歷史
動作
std::experimental::
max
從 cppreference.com
<
cpp
|
experimental
|
simd
C++
編譯器支持
自立實現與有宿主實現
語言
標準庫
標準庫標頭
具名要求
功能特性測試宏
(C++20)
語言支持庫
概念庫
(C++20)
診斷庫
內存管理庫
元編程庫
(C++11)
通用工具庫
容器庫
迭代器庫
範圍庫
(C++20)
算法庫
字符串庫
文本處理庫
數值庫
日期和時間庫
輸入/輸出庫
文件系統庫
(C++17)
並發支持庫
(C++11)
執行控制庫
(C++26)
技術規範
符號索引
外部庫
[編輯]
實驗性
技術規範
文件系統庫
(文件系統 TS)
庫基礎
(庫基礎 TS)
庫基礎 2
(庫基礎 TS v2)
庫基礎 3
(庫基礎 TS v3)
並行擴展
(並行 TS)
並行擴展 2
(並行 TS v2)
並發擴展
(並發 TS)
並發擴展 2
(並發 TS v2)
概念
(概念 TS)
範圍
(範圍 TS)
反射
(反射 TS)
數學特殊函數
(特殊函數 TR)
實驗性非 TS 功能特性
模式匹配
線性代數
std::execution
契約
2D 圖形
[編輯]
並行擴展 v2
並行異常
exception_list
額外的執行策略
execution::vector_policy
execution::unsequenced_policy
算法
induction
reduction
reduction_plus
reduction_minus
reduction_multiplies
reduction_bit_and
reduction_bit_or
reduction_bit_xor
reduction_min
reduction_max
for_loop
for_loop_strided
for_loop_n
for_loop_n_strided
execution::no_vec
execution::ordered_update_t
任務塊
task_block
task_cancelled_exception
define_task_block
define_task_block_restore_thread
數據並行向量
[編輯]
SIMD 庫
主類
simd
simd_mask
ABI 標籤
simd_abi::scalar
simd_abi::fixed_size
simd_abi::native
simd_abi::compatible
simd_abi::max_fixed_size
simd_abi::deduce
對齊標籤
element_aligned_tag
element_aligned
vector_aligned_tag
vector_aligned
overaligned_tag
overaligned
where 表達式
where
where_expression
const_where_expression
轉型
simd_cast
static_simd_cast
to_fixed_size
to_compatible
to_native
split
split_by
concat
算法
min
max
minmax
clamp
規約
reduce
hmin
hmax
掩碼規約
all_of
any_of
none_of
some_of
popcount
find_first_set
find_last_set
特徵
is_simd
is_simd_mask
is_abi_tag
is_simd_flag_type
simd_size
memory_alignment
rebind_simd
resize_simd
數學函數
[編輯]
在標頭
<experimental/simd>
定義
template
<
class
T,
class
Abi
>
simd
<
T, Abi
>
max
(
const
simd
<
T, Abi
>
&
a,
const
simd
<
T, Abi
>
&
b
)
noexcept
;
(並行 TS v2)
目錄
1
參數
2
返回值
3
示例
4
參閱
[
編輯
]
參數
a
-
求最大值的第一元素向量
b
-
求最大值的第二元素向量
[
編輯
]
返回值
對所有
i
∈
[
0
,
size
(
)
)
逐元素應用二元
std::
max
(
a
[
i
]
, b
[
i
]
)
的結果。
[
編輯
]
示例
本節未完成
原因:暫無示例
[
編輯
]
參閱
1個分類
:
無示例的 todo