Table of Contents

Method Dot

Namespace
Zyl.VectorTraits
Assembly
VectorTraits.dll

Dot(Vector256<float>, Vector256<float>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

public static float Dot(Vector256<float> left, Vector256<float> right)

Parameters

left Vector256<float>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<float>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

float

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<double>, Vector256<double>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

public static double Dot(Vector256<double> left, Vector256<double> right)

Parameters

left Vector256<double>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<double>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

double

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<sbyte>, Vector256<sbyte>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

[CLSCompliant(false)]
public static sbyte Dot(Vector256<sbyte> left, Vector256<sbyte> right)

Parameters

left Vector256<sbyte>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<sbyte>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

sbyte

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<byte>, Vector256<byte>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

public static byte Dot(Vector256<byte> left, Vector256<byte> right)

Parameters

left Vector256<byte>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<byte>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

byte

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<short>, Vector256<short>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

public static short Dot(Vector256<short> left, Vector256<short> right)

Parameters

left Vector256<short>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<short>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

short

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<ushort>, Vector256<ushort>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

[CLSCompliant(false)]
public static ushort Dot(Vector256<ushort> left, Vector256<ushort> right)

Parameters

left Vector256<ushort>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<ushort>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

ushort

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<int>, Vector256<int>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

public static int Dot(Vector256<int> left, Vector256<int> right)

Parameters

left Vector256<int>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<int>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

int

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<uint>, Vector256<uint>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

[CLSCompliant(false)]
public static uint Dot(Vector256<uint> left, Vector256<uint> right)

Parameters

left Vector256<uint>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<uint>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

uint

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<long>, Vector256<long>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

public static long Dot(Vector256<long> left, Vector256<long> right)

Parameters

left Vector256<long>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<long>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

long

The dot product of left and right (leftright的点积).

See Also

Dot(Vector256<ulong>, Vector256<ulong>)

Computes the dot product of two vectors (计算两个向量的点积). Mnemonic: rt := left[0]*right[0] + left[1]*right[1] + left[2]*right[2] + ... + left[Count-1]*right[Count-1].

[CLSCompliant(false)]
public static ulong Dot(Vector256<ulong> left, Vector256<ulong> right)

Parameters

left Vector256<ulong>

The vector that will be dotted with right (将会与right进行点积的向量).

right Vector256<ulong>

The vector that will be dotted with left (将会与left进行点积的向量).

Returns

ulong

The dot product of left and right (leftright的点积).

See Also