Table of Contents

Method Add

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Add(Vector128<float>, Vector128<float>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

public static Vector128<float> Add(Vector128<float> left, Vector128<float> right)

Parameters

left Vector128<float>

The vector to add with right (将会与right进行相加的向量).

right Vector128<float>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<float>

The sum of left and right (leftright的和).

See Also

Add(Vector128<double>, Vector128<double>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

public static Vector128<double> Add(Vector128<double> left, Vector128<double> right)

Parameters

left Vector128<double>

The vector to add with right (将会与right进行相加的向量).

right Vector128<double>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<double>

The sum of left and right (leftright的和).

See Also

Add(Vector128<sbyte>, Vector128<sbyte>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

[CLSCompliant(false)]
public static Vector128<sbyte> Add(Vector128<sbyte> left, Vector128<sbyte> right)

Parameters

left Vector128<sbyte>

The vector to add with right (将会与right进行相加的向量).

right Vector128<sbyte>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<sbyte>

The sum of left and right (leftright的和).

See Also

Add(Vector128<byte>, Vector128<byte>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

public static Vector128<byte> Add(Vector128<byte> left, Vector128<byte> right)

Parameters

left Vector128<byte>

The vector to add with right (将会与right进行相加的向量).

right Vector128<byte>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<byte>

The sum of left and right (leftright的和).

See Also

Add(Vector128<short>, Vector128<short>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

public static Vector128<short> Add(Vector128<short> left, Vector128<short> right)

Parameters

left Vector128<short>

The vector to add with right (将会与right进行相加的向量).

right Vector128<short>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<short>

The sum of left and right (leftright的和).

See Also

Add(Vector128<ushort>, Vector128<ushort>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

[CLSCompliant(false)]
public static Vector128<ushort> Add(Vector128<ushort> left, Vector128<ushort> right)

Parameters

left Vector128<ushort>

The vector to add with right (将会与right进行相加的向量).

right Vector128<ushort>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<ushort>

The sum of left and right (leftright的和).

See Also

Add(Vector128<int>, Vector128<int>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

public static Vector128<int> Add(Vector128<int> left, Vector128<int> right)

Parameters

left Vector128<int>

The vector to add with right (将会与right进行相加的向量).

right Vector128<int>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<int>

The sum of left and right (leftright的和).

See Also

Add(Vector128<uint>, Vector128<uint>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

[CLSCompliant(false)]
public static Vector128<uint> Add(Vector128<uint> left, Vector128<uint> right)

Parameters

left Vector128<uint>

The vector to add with right (将会与right进行相加的向量).

right Vector128<uint>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<uint>

The sum of left and right (leftright的和).

See Also

Add(Vector128<long>, Vector128<long>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

public static Vector128<long> Add(Vector128<long> left, Vector128<long> right)

Parameters

left Vector128<long>

The vector to add with right (将会与right进行相加的向量).

right Vector128<long>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<long>

The sum of left and right (leftright的和).

See Also

Add(Vector128<ulong>, Vector128<ulong>)

Adds two vectors to compute their sum (将两个向量相加来计算它们的和). Mnemonic: rt[i] := left[i] + right[i].

[CLSCompliant(false)]
public static Vector128<ulong> Add(Vector128<ulong> left, Vector128<ulong> right)

Parameters

left Vector128<ulong>

The vector to add with right (将会与right进行相加的向量).

right Vector128<ulong>

The vector to add with left (将会与left进行相加的向量).

Returns

Vector128<ulong>

The sum of left and right (leftright的和).

See Also