Table of Contents

Method Add

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Add(Vector<float>, Vector<float>)

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

[Obsolete("Please use `Vector.Add` instead. It's much more performant.")]
public static Vector<float> Add(Vector<float> left, Vector<float> right)

Parameters

left Vector<float>

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

right Vector<float>

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

Returns

Vector<float>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<double>, Vector<double>)

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

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

Parameters

left Vector<double>

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

right Vector<double>

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

Returns

Vector<double>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<sbyte>, Vector<sbyte>)

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

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

Parameters

left Vector<sbyte>

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

right Vector<sbyte>

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

Returns

Vector<sbyte>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<byte>, Vector<byte>)

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

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

Parameters

left Vector<byte>

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

right Vector<byte>

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

Returns

Vector<byte>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<short>, Vector<short>)

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

[Obsolete("Please use `Vector.Add` instead. It's much more performant.")]
public static Vector<short> Add(Vector<short> left, Vector<short> right)

Parameters

left Vector<short>

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

right Vector<short>

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

Returns

Vector<short>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<ushort>, Vector<ushort>)

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

[Obsolete("Please use `Vector.Add` instead. It's much more performant.")]
[CLSCompliant(false)]
public static Vector<ushort> Add(Vector<ushort> left, Vector<ushort> right)

Parameters

left Vector<ushort>

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

right Vector<ushort>

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

Returns

Vector<ushort>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<int>, Vector<int>)

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

[Obsolete("Please use `Vector.Add` instead. It's much more performant.")]
public static Vector<int> Add(Vector<int> left, Vector<int> right)

Parameters

left Vector<int>

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

right Vector<int>

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

Returns

Vector<int>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<uint>, Vector<uint>)

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

[Obsolete("Please use `Vector.Add` instead. It's much more performant.")]
[CLSCompliant(false)]
public static Vector<uint> Add(Vector<uint> left, Vector<uint> right)

Parameters

left Vector<uint>

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

right Vector<uint>

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

Returns

Vector<uint>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<long>, Vector<long>)

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

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

Parameters

left Vector<long>

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

right Vector<long>

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

Returns

Vector<long>

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

See Also
Add<T>(Vector<T>, Vector<T>)

Add(Vector<ulong>, Vector<ulong>)

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

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

Parameters

left Vector<ulong>

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

right Vector<ulong>

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

Returns

Vector<ulong>

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

See Also
Add<T>(Vector<T>, Vector<T>)