Vector<T>.Multiply 运算符

定义

重载

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

返回一个新向量,其值是两个指定向量中的每对元素的乘积。

Multiply(Vector<T>, T)

将向量乘以指定标量值。

Multiply(T, Vector<T>)

将向量乘以指定标量值。

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

返回一个新向量,其值是两个指定向量中的每对元素的乘积。

public:
 static System::Numerics::Vector<T> operator *(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
public static System.Numerics.Vector<T> operator * (System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);
static member ( * ) : System.Numerics.Vector<'T (requires 'T : struct)> * System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
static member ( * ) : System.Numerics.Vector<'T> * System.Numerics.Vector<'T> -> System.Numerics.Vector<'T>
Public Shared Operator * (left As Vector(Of T), right As Vector(Of T)) As Vector(Of T)

参数

left
Vector<T>

第一个向量。

right
Vector<T>

第二个向量。

返回

元素方面的乘积向量。

例外

.NET 5 及更高版本:不支持类型 T

注解

方法 Multiply 定义 对象的乘法运算 Vector<T>

适用于

Multiply(Vector<T>, T)

将向量乘以指定标量值。

public:
 static System::Numerics::Vector<T> operator *(System::Numerics::Vector<T> value, T factor);
public static System.Numerics.Vector<T> operator * (System.Numerics.Vector<T> value, T factor);
static member ( * ) : System.Numerics.Vector<'T (requires 'T : struct)> * 'T -> System.Numerics.Vector<'T (requires 'T : struct)>
static member ( * ) : System.Numerics.Vector<'T> * 'T -> System.Numerics.Vector<'T>
Public Shared Operator * (value As Vector(Of T), factor As T) As Vector(Of T)

参数

value
Vector<T>

源向量。

factor
T

标量值。

返回

缩放后的向量。

例外

.NET 5 及更高版本:不支持类型 T

注解

方法 Multiply 定义 对象的乘法运算 Vector<T>

适用于

Multiply(T, Vector<T>)

将向量乘以指定标量值。

public:
 static System::Numerics::Vector<T> operator *(T factor, System::Numerics::Vector<T> value);
public static System.Numerics.Vector<T> operator * (T factor, System.Numerics.Vector<T> value);
static member ( * ) : 'T * System.Numerics.Vector<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
static member ( * ) : 'T * System.Numerics.Vector<'T> -> System.Numerics.Vector<'T>
Public Shared Operator * (factor As T, value As Vector(Of T)) As Vector(Of T)

参数

factor
T

标量值。

value
Vector<T>

源向量。

返回

缩放后的向量。

例外

.NET 5 及更高版本:不支持类型 T

注解

方法 Multiply 定义 对象的乘法运算 Vector<T>

适用于