Vector.Narrow Method
Definition
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.
Overloads
Narrow(Vector<UInt64>, Vector<UInt64>) |
Narrows two |
Narrow(Vector<UInt32>, Vector<UInt32>) |
Narrows two |
Narrow(Vector<Int64>, Vector<Int64>) |
Narrows two |
Narrow(Vector<UInt16>, Vector<UInt16>) |
Narrows two |
Narrow(Vector<Int16>, Vector<Int16>) |
Narrows two |
Narrow(Vector<Double>, Vector<Double>) |
Narrows two |
Narrow(Vector<Int32>, Vector<Int32>) |
Narrows two |
Narrow(Vector<UInt64>, Vector<UInt64>)
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Important
This API is not CLS-compliant.
Narrows two Vector<UInt64>
instances into one Vector<UInt32>
.
public:
static System::Numerics::Vector<System::UInt32> Narrow(System::Numerics::Vector<System::UInt64> source1, System::Numerics::Vector<System::UInt64> source2);
public:
static System::Numerics::Vector<System::UInt32> Narrow(System::Numerics::Vector<System::UInt64> low, System::Numerics::Vector<System::UInt64> high);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<uint> Narrow (System.Numerics.Vector<ulong> source1, System.Numerics.Vector<ulong> source2);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<uint> Narrow (System.Numerics.Vector<ulong> low, System.Numerics.Vector<ulong> high);
[<System.CLSCompliant(false)>]
static member Narrow : System.Numerics.Vector<uint64> * System.Numerics.Vector<uint64> -> System.Numerics.Vector<uint32>
Public Shared Function Narrow (source1 As Vector(Of ULong), source2 As Vector(Of ULong)) As Vector(Of UInteger)
Public Function Narrow (low As Vector(Of ULong), high As Vector(Of ULong)) As Vector(Of UInteger)
Public Shared Function Narrow (low As Vector(Of ULong), high As Vector(Of ULong)) As Vector(Of UInteger)
Parameters
The first source vector, whose elements become the lower-index elements of the return value.
The second source vector, whose elements become the higher-index elements of the return value.
Returns
A Vector<UInt32>
containing elements narrowed from the source vectors.
- Attributes
Applies to
Narrow(Vector<UInt32>, Vector<UInt32>)
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Important
This API is not CLS-compliant.
Narrows two Vector<UInt32>
instances into one Vector<UInt16>
.
public:
static System::Numerics::Vector<System::UInt16> Narrow(System::Numerics::Vector<System::UInt32> source1, System::Numerics::Vector<System::UInt32> source2);
public:
static System::Numerics::Vector<System::UInt16> Narrow(System::Numerics::Vector<System::UInt32> low, System::Numerics::Vector<System::UInt32> high);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<ushort> Narrow (System.Numerics.Vector<uint> source1, System.Numerics.Vector<uint> source2);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<ushort> Narrow (System.Numerics.Vector<uint> low, System.Numerics.Vector<uint> high);
[<System.CLSCompliant(false)>]
static member Narrow : System.Numerics.Vector<uint32> * System.Numerics.Vector<uint32> -> System.Numerics.Vector<uint16>
Public Shared Function Narrow (source1 As Vector(Of UInteger), source2 As Vector(Of UInteger)) As Vector(Of UShort)
Public Function Narrow (low As Vector(Of UInteger), high As Vector(Of UInteger)) As Vector(Of UShort)
Public Shared Function Narrow (low As Vector(Of UInteger), high As Vector(Of UInteger)) As Vector(Of UShort)
Parameters
The first source vector, whose elements become the lower-index elements of the return value.
The second source vector, whose elements become the higher-index elements of the return value.
Returns
A Vector<UInt16>
containing elements narrowed from the source vectors.
- Attributes
Applies to
Narrow(Vector<Int64>, Vector<Int64>)
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Narrows two Vector<Int64>
instances into one Vector<Int32>
.
public:
static System::Numerics::Vector<int> Narrow(System::Numerics::Vector<long> source1, System::Numerics::Vector<long> source2);
public:
static System::Numerics::Vector<int> Narrow(System::Numerics::Vector<long> low, System::Numerics::Vector<long> high);
public static System.Numerics.Vector<int> Narrow (System.Numerics.Vector<long> source1, System.Numerics.Vector<long> source2);
public static System.Numerics.Vector<int> Narrow (System.Numerics.Vector<long> low, System.Numerics.Vector<long> high);
static member Narrow : System.Numerics.Vector<int64> * System.Numerics.Vector<int64> -> System.Numerics.Vector<int>
static member Narrow : System.Numerics.Vector<int64> * System.Numerics.Vector<int64> -> System.Numerics.Vector<int>
Public Shared Function Narrow (source1 As Vector(Of Long), source2 As Vector(Of Long)) As Vector(Of Integer)
Public Function Narrow (low As Vector(Of Long), high As Vector(Of Long)) As Vector(Of Integer)
Public Shared Function Narrow (low As Vector(Of Long), high As Vector(Of Long)) As Vector(Of Integer)
Parameters
The first source vector, whose elements become the lower-index elements of the return value.
The second source vector, whose elements become the higher-index elements of the return value.
Returns
A Vector<Int32>
containing elements narrowed from the source vectors.
Applies to
Narrow(Vector<UInt16>, Vector<UInt16>)
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Important
This API is not CLS-compliant.
Narrows two Vector<UInt16>
instances into one Vector<Byte>
.
public:
static System::Numerics::Vector<System::Byte> Narrow(System::Numerics::Vector<System::UInt16> source1, System::Numerics::Vector<System::UInt16> source2);
public:
static System::Numerics::Vector<System::Byte> Narrow(System::Numerics::Vector<System::UInt16> low, System::Numerics::Vector<System::UInt16> high);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<byte> Narrow (System.Numerics.Vector<ushort> source1, System.Numerics.Vector<ushort> source2);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<byte> Narrow (System.Numerics.Vector<ushort> low, System.Numerics.Vector<ushort> high);
[<System.CLSCompliant(false)>]
static member Narrow : System.Numerics.Vector<uint16> * System.Numerics.Vector<uint16> -> System.Numerics.Vector<byte>
Public Shared Function Narrow (source1 As Vector(Of UShort), source2 As Vector(Of UShort)) As Vector(Of Byte)
Public Function Narrow (low As Vector(Of UShort), high As Vector(Of UShort)) As Vector(Of Byte)
Public Shared Function Narrow (low As Vector(Of UShort), high As Vector(Of UShort)) As Vector(Of Byte)
Parameters
The first source vector, whose elements become the lower-index elements of the return value.
The second source vector, whose elements become the higher-index elements of the return value.
Returns
A Vector<Byte>
containing elements narrowed from the source vectors.
- Attributes
Applies to
Narrow(Vector<Int16>, Vector<Int16>)
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Important
This API is not CLS-compliant.
Narrows two Vector<Int16>
instances into one Vector<SByte>
.
public:
static System::Numerics::Vector<System::SByte> Narrow(System::Numerics::Vector<short> source1, System::Numerics::Vector<short> source2);
public:
static System::Numerics::Vector<System::SByte> Narrow(System::Numerics::Vector<short> low, System::Numerics::Vector<short> high);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<sbyte> Narrow (System.Numerics.Vector<short> source1, System.Numerics.Vector<short> source2);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<sbyte> Narrow (System.Numerics.Vector<short> low, System.Numerics.Vector<short> high);
[<System.CLSCompliant(false)>]
static member Narrow : System.Numerics.Vector<int16> * System.Numerics.Vector<int16> -> System.Numerics.Vector<sbyte>
Public Shared Function Narrow (source1 As Vector(Of Short), source2 As Vector(Of Short)) As Vector(Of SByte)
Public Function Narrow (low As Vector(Of Short), high As Vector(Of Short)) As Vector(Of SByte)
Public Shared Function Narrow (low As Vector(Of Short), high As Vector(Of Short)) As Vector(Of SByte)
Parameters
The first source vector, whose elements become the lower-index elements of the return value.
The second source vector, whose elements become the higher-index elements of the return value.
Returns
A Vector<SByte>
containing elements narrowed from the source vectors.
- Attributes
Applies to
Narrow(Vector<Double>, Vector<Double>)
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Narrows two Vector<Double>
instances into one Vector<Single>
.
public:
static System::Numerics::Vector<float> Narrow(System::Numerics::Vector<double> source1, System::Numerics::Vector<double> source2);
public:
static System::Numerics::Vector<float> Narrow(System::Numerics::Vector<double> low, System::Numerics::Vector<double> high);
public static System.Numerics.Vector<float> Narrow (System.Numerics.Vector<double> source1, System.Numerics.Vector<double> source2);
public static System.Numerics.Vector<float> Narrow (System.Numerics.Vector<double> low, System.Numerics.Vector<double> high);
static member Narrow : System.Numerics.Vector<double> * System.Numerics.Vector<double> -> System.Numerics.Vector<single>
static member Narrow : System.Numerics.Vector<double> * System.Numerics.Vector<double> -> System.Numerics.Vector<single>
Public Shared Function Narrow (source1 As Vector(Of Double), source2 As Vector(Of Double)) As Vector(Of Single)
Public Function Narrow (low As Vector(Of Double), high As Vector(Of Double)) As Vector(Of Single)
Public Shared Function Narrow (low As Vector(Of Double), high As Vector(Of Double)) As Vector(Of Single)
Parameters
The first source vector, whose elements become the lower-index elements of the return value.
The second source vector, whose elements become the higher-index elements of the return value.
Returns
A Vector<Single>
containing elements narrowed from the source vectors.
Applies to
Narrow(Vector<Int32>, Vector<Int32>)
- Source:
- Vector.cs
- Source:
- Vector.cs
- Source:
- Vector.cs
Narrows two Vector<Int32>
instances into one Vector<Int16>
.
public:
static System::Numerics::Vector<short> Narrow(System::Numerics::Vector<int> source1, System::Numerics::Vector<int> source2);
public:
static System::Numerics::Vector<short> Narrow(System::Numerics::Vector<int> low, System::Numerics::Vector<int> high);
public static System.Numerics.Vector<short> Narrow (System.Numerics.Vector<int> source1, System.Numerics.Vector<int> source2);
public static System.Numerics.Vector<short> Narrow (System.Numerics.Vector<int> low, System.Numerics.Vector<int> high);
static member Narrow : System.Numerics.Vector<int> * System.Numerics.Vector<int> -> System.Numerics.Vector<int16>
static member Narrow : System.Numerics.Vector<int> * System.Numerics.Vector<int> -> System.Numerics.Vector<int16>
Public Shared Function Narrow (source1 As Vector(Of Integer), source2 As Vector(Of Integer)) As Vector(Of Short)
Public Function Narrow (low As Vector(Of Integer), high As Vector(Of Integer)) As Vector(Of Short)
Public Shared Function Narrow (low As Vector(Of Integer), high As Vector(Of Integer)) As Vector(Of Short)
Parameters
The first source vector, whose elements become the lower-index elements of the return value.
The second source vector, whose elements become the higher-index elements of the return value.
Returns
A Vector<Int16>
containing elements narrowed from the source vectors.