Method Sum
- Namespace
- Zyl.VectorTraits.Impl
- Assembly
- VectorTraits.dll
Sum(Vector128<float>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
float Sum(Vector128<float> value)
Parameters
Returns
- float
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<double>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
double Sum(Vector128<double> value)
Parameters
Returns
- double
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<sbyte>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
sbyte Sum(Vector128<sbyte> value)
Parameters
Returns
- sbyte
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<byte>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
byte Sum(Vector128<byte> value)
Parameters
Returns
- byte
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<short>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
short Sum(Vector128<short> value)
Parameters
Returns
- short
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<ushort>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
ushort Sum(Vector128<ushort> value)
Parameters
Returns
- ushort
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<int>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
int Sum(Vector128<int> value)
Parameters
Returns
- int
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<uint>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
uint Sum(Vector128<uint> value)
Parameters
Returns
- uint
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<long>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
long Sum(Vector128<long> value)
Parameters
Returns
- long
The sum of all elements in
value
(value
中所有元素的总和).
- See Also
Sum(Vector128<ulong>)
Computes the sum of all elements in a vector (计算向量中所有元素的总和).
Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1]
.
ulong Sum(Vector128<ulong> value)
Parameters
Returns
- ulong
The sum of all elements in
value
(value
中所有元素的总和).
- See Also