Table of Contents

Method Subtract

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Subtract(Vector128<float>, Vector128<float>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<float>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<float>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<float>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<double>, Vector128<double>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<double>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<double>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<double>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<sbyte>, Vector128<sbyte>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<sbyte>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<sbyte>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<sbyte>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<byte>, Vector128<byte>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<byte>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<byte>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<byte>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<short>, Vector128<short>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<short>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<short>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<short>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<ushort>, Vector128<ushort>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<ushort>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<ushort>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<ushort>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<int>, Vector128<int>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<int>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<int>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<int>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<uint>, Vector128<uint>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<uint>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<uint>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<uint>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<long>, Vector128<long>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<long>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<long>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<long>

The difference of left and right (leftright的差).

See Also

Subtract(Vector128<ulong>, Vector128<ulong>)

Subtracts two vectors to compute their difference (将两个向量相减来计算它们的差). Mnemonic: rt[i] := left[i] - right[i].

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

Parameters

left Vector128<ulong>

The vector from which right will be subtracted (将被减去right的向量).

right Vector128<ulong>

The vector to subtract from left (要从left减去的向量).

Returns

Vector128<ulong>

The difference of left and right (leftright的差).

See Also