Vector128.Multiply Method

Definition

Overloads

Multiply<T>(Vector128<T>, Vector128<T>)

Multiplies two vectors to compute their element-wise product.

Multiply<T>(Vector128<T>, T)

Multiplies a vector by a scalar to compute their product.

Multiply<T>(T, Vector128<T>)

Multiplies a vector by a scalar to compute their product.

Multiply<T>(Vector128<T>, Vector128<T>)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Multiplies two vectors to compute their element-wise product.

C#
public static System.Runtime.Intrinsics.Vector128<T> Multiply<T>(System.Runtime.Intrinsics.Vector128<T> left, System.Runtime.Intrinsics.Vector128<T> right) where T : struct;
C#
public static System.Runtime.Intrinsics.Vector128<T> Multiply<T>(System.Runtime.Intrinsics.Vector128<T> left, System.Runtime.Intrinsics.Vector128<T> right);

Type Parameters

T

The type of the elements in the vector.

Parameters

left
Vector128<T>

The vector to multiply with right.

right
Vector128<T>

The vector to multiply with left.

Returns

The element-wise product of left and right.

Exceptions

The type of left and right (T) is not supported.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9

Multiply<T>(Vector128<T>, T)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Multiplies a vector by a scalar to compute their product.

C#
public static System.Runtime.Intrinsics.Vector128<T> Multiply<T>(System.Runtime.Intrinsics.Vector128<T> left, T right) where T : struct;
C#
public static System.Runtime.Intrinsics.Vector128<T> Multiply<T>(System.Runtime.Intrinsics.Vector128<T> left, T right);

Type Parameters

T

The type of the elements in the vector.

Parameters

left
Vector128<T>

The vector to multiply with right.

right
T

The scalar to multiply with left.

Returns

The product of left and right.

Exceptions

The type of left and right (T) is not supported.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9

Multiply<T>(T, Vector128<T>)

Source:
Vector128.cs
Source:
Vector128.cs
Source:
Vector128.cs

Multiplies a vector by a scalar to compute their product.

C#
public static System.Runtime.Intrinsics.Vector128<T> Multiply<T>(T left, System.Runtime.Intrinsics.Vector128<T> right) where T : struct;
C#
public static System.Runtime.Intrinsics.Vector128<T> Multiply<T>(T left, System.Runtime.Intrinsics.Vector128<T> right);

Type Parameters

T

The type of the elements in the vector.

Parameters

left
T

The scalar to multiply with right.

right
Vector128<T>

The vector to multiply with left.

Returns

The product of left and right.

Exceptions

The type of left and right (T) is not supported.

Applies to

.NET 9 and other versions
Product Versions
.NET 7, 8, 9