Table of Contents

Method Sum

Namespace
Zyl.VectorTraits.Impl.AVector512
Assembly
VectorTraits.dll

Sum(Vector512<float>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

public virtual float Sum(Vector512<float> value)

Parameters

value Vector512<float>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

float

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<double>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

public virtual double Sum(Vector512<double> value)

Parameters

value Vector512<double>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

double

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<sbyte>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

[CLSCompliant(false)]
public virtual sbyte Sum(Vector512<sbyte> value)

Parameters

value Vector512<sbyte>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

sbyte

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<byte>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

public virtual byte Sum(Vector512<byte> value)

Parameters

value Vector512<byte>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

byte

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<short>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

public virtual short Sum(Vector512<short> value)

Parameters

value Vector512<short>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

short

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<ushort>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

[CLSCompliant(false)]
public virtual ushort Sum(Vector512<ushort> value)

Parameters

value Vector512<ushort>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

ushort

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<int>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

public virtual int Sum(Vector512<int> value)

Parameters

value Vector512<int>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

int

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<uint>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

[CLSCompliant(false)]
public virtual uint Sum(Vector512<uint> value)

Parameters

value Vector512<uint>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

uint

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<long>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

public virtual long Sum(Vector512<long> value)

Parameters

value Vector512<long>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

long

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)

Sum(Vector512<ulong>)

Computes the sum of all elements in a vector (计算向量中所有元素的总和). Mnemonic: rt := value[0] + value[1] + value[2] + ... + value[Count-1].

[CLSCompliant(false)]
public virtual ulong Sum(Vector512<ulong> value)

Parameters

value Vector512<ulong>

The vector whose elements will be summed (将对其元素求和的向量).

Returns

ulong

The sum of all elements in value (value 中所有元素的总和).

See Also
Sum<T>(Vector512<T>)