Vector<T>.Multiply Operator
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |
- 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
.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 |
- 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
.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 |
- 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
.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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: