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.

C#
public static System.Numerics.Vector<T> operator *(System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);

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

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

Multiply(Vector<T>, T)

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

Multiplies a vector by a specified scalar value.

C#
public static System.Numerics.Vector<T> operator *(System.Numerics.Vector<T> value, T factor);

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

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0

Multiply(T, Vector<T>)

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

Multiplies a vector by a specified scalar value.

C#
public static System.Numerics.Vector<T> operator *(T factor, System.Numerics.Vector<T> value);

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

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Standard 2.0 (package-provided), 2.1
UWP 10.0