Vector.Multiply Vector.Multiply Vector.Multiply Vector.Multiply Method

定义

重载

Multiply<T>(T, Vector<T>) Multiply<T>(T, Vector<T>) Multiply<T>(T, Vector<T>) Multiply<T>(T, Vector<T>)

返回一个新向量,其值为乘以指定向量中的每个值所得的标量值。Returns a new vector whose values are a scalar value multiplied by each of the values of a specified vector.

Multiply<T>(Vector<T>, Vector<T>) Multiply<T>(Vector<T>, Vector<T>) Multiply<T>(Vector<T>, Vector<T>) Multiply<T>(Vector<T>, Vector<T>)

返回一个新向量,其值是两个指定向量中的每对元素的乘积。Returns a new vector whose values are the product of each pair of elements in two specified vectors.

Multiply<T>(Vector<T>, T) Multiply<T>(Vector<T>, T) Multiply<T>(Vector<T>, T) Multiply<T>(Vector<T>, T)

返回一个新向量,其值是乘以标量值的指定向量的每个值。Returns a new vector whose values are the values of a specified vector each multiplied by a scalar value.

Multiply<T>(T, Vector<T>) Multiply<T>(T, Vector<T>) Multiply<T>(T, Vector<T>) Multiply<T>(T, Vector<T>)

返回一个新向量,其值为乘以指定向量中的每个值所得的标量值。Returns a new vector whose values are a scalar value multiplied by each of the values of a specified vector.

public:
generic <typename T>
 where T : value class static System::Numerics::Vector<T> Multiply(T left, System::Numerics::Vector<T> right);
public static System.Numerics.Vector<T> Multiply<T> (T left, System.Numerics.Vector<T> right) where T : struct;
static member Multiply : 'T * System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)> (requires 'T : struct)
Public Shared Function Multiply(Of T As Structure) (left As T, right As Vector(Of T)) As Vector(Of T)

类型参数

T

向量类型。The vector type. T可以是任何基元数值类型。T can be any primitive numeric type.

参数

left
T T T T

标量值。The scalar value.

right
Vector<T> Vector<T> Vector<T> Vector<T>

向量。The vector.

返回

缩放后的向量。The scaled vector.

Multiply<T>(Vector<T>, Vector<T>) Multiply<T>(Vector<T>, Vector<T>) Multiply<T>(Vector<T>, Vector<T>) Multiply<T>(Vector<T>, Vector<T>)

返回一个新向量,其值是两个指定向量中的每对元素的乘积。Returns a new vector whose values are the product of each pair of elements in two specified vectors.

public:
generic <typename T>
 where T : value class static System::Numerics::Vector<T> Multiply(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
public static System.Numerics.Vector<T> Multiply<T> (System.Numerics.Vector<T> left, System.Numerics.Vector<T> right) where T : struct;
static member Multiply : System.Numerics.Vector<'T (requires 'T : struct)> * System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)> (requires 'T : struct)
Public Shared Function Multiply(Of T As Structure) (left As Vector(Of T), right As Vector(Of T)) As Vector(Of T)

类型参数

T

向量类型。The vector type. T可以是任何基元数值类型。T can be any primitive numeric type.

参数

left
Vector<T> Vector<T> Vector<T> Vector<T>

第一个向量。The first vector.

right
Vector<T> Vector<T> Vector<T> Vector<T>

第二个向量。The second vector.

返回

元素方面的乘积向量。The element-wise product vector.

Multiply<T>(Vector<T>, T) Multiply<T>(Vector<T>, T) Multiply<T>(Vector<T>, T) Multiply<T>(Vector<T>, T)

返回一个新向量,其值是乘以标量值的指定向量的每个值。Returns a new vector whose values are the values of a specified vector each multiplied by a scalar value.

public:
generic <typename T>
 where T : value class static System::Numerics::Vector<T> Multiply(System::Numerics::Vector<T> left, T right);
public static System.Numerics.Vector<T> Multiply<T> (System.Numerics.Vector<T> left, T right) where T : struct;
static member Multiply : System.Numerics.Vector<'T (requires 'T : struct)> * 'T -> System.Numerics.Vector<'T (requires 'T : struct)> (requires 'T : struct)
Public Shared Function Multiply(Of T As Structure) (left As Vector(Of T), right As T) As Vector(Of T)

类型参数

T

向量类型。The vector type. T可以是任何基元数值类型。T can be any primitive numeric type.

参数

left
Vector<T> Vector<T> Vector<T> Vector<T>

向量。The vector.

right
T T T T

标量值。The scalar value.

返回

缩放后的向量。The scaled vector.

适用于