Szerkesztés

Megosztás a következőn keresztül:


Vector<T>.Multiply Operator

Definition

Overloads

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

Returns a new vector whose values are the product of each pair of elements in two specified vectors.

Multiply(Vector<T>, T)

Multiplies a vector by a specified scalar value.

Multiply(T, Vector<T>)

Multiplies a vector by a specified scalar value.

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

Source:
Vector_1.cs
Source:
Vector_1.cs
Source:
Vector_1.cs

Returns a new vector whose values are the product of each pair of elements in two specified vectors.

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)

Parameters

left
Vector<T>

The first vector.

right
Vector<T>

The second vector.

Returns

The element-wise product vector.

Exceptions

.NET 5 and later: Type T is not supported.

Remarks

The Multiply method defines the multiplication operation for Vector<T> objects.

Applies to

Multiply(Vector<T>, T)

Source:
Vector_1.cs
Source:
Vector_1.cs
Source:
Vector_1.cs

Multiplies a vector by a specified scalar value.

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)

Parameters

value
Vector<T>

The source vector.

factor
T

A scalar value.

Returns

The scaled vector.

Exceptions

.NET 5 and later: Type T is not supported.

Remarks

The Multiply method defines the multiplication operation for Vector<T> objects.

Applies to

Multiply(T, Vector<T>)

Source:
Vector_1.cs
Source:
Vector_1.cs
Source:
Vector_1.cs

Multiplies a vector by a specified scalar value.

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)

Parameters

factor
T

The scalar value.

value
Vector<T>

The source vector.

Returns

The scaled vector.

Exceptions

.NET 5 and later: Type T is not supported.

Remarks

The Multiply method defines the multiplication operation for Vector<T> objects.

Applies to