語言

Vector<T>.Multiply 運算子

定義

多載

名稱 Description
Multiply(Vector<T>, Vector<T>)

回傳一個新向量,其值為兩個指定向量中每對元素的乘積。

Multiply(Vector<T>, T)

將向量乘以指定的標量值。

Multiply(T, Vector<T>)

將向量乘以指定的標量值。

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

來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs

回傳一個新向量,其值為兩個指定向量中每對元素的乘積。

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)

來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs

將向量乘以指定的標量值。

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>)

來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs
來源:
Vector_1.cs

將向量乘以指定的標量值。

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> 乘法運算。

適用於