Vector.NarrowWithSaturation 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
| NarrowWithSaturation(Vector<UInt32>, Vector<UInt32>) |
Narrows two vector of UInt32 instances into one vector of UInt16 using a saturating conversion. |
| NarrowWithSaturation(Vector<UInt64>, Vector<UInt64>) |
Narrows two vector of UInt64 instances into one vector of UInt32 using a saturating conversion. |
| NarrowWithSaturation(Vector<UInt16>, Vector<UInt16>) |
Narrows two vector of UInt16 instances into one vector of Byte using a saturating conversion. |
| NarrowWithSaturation(Vector<Double>, Vector<Double>) |
Narrows two vector of Double instances into one vector of Single using a saturating conversion. |
| NarrowWithSaturation(Vector<Int32>, Vector<Int32>) |
Narrows two vector of Int32 instances into one vector of Int16 using a saturating conversion. |
| NarrowWithSaturation(Vector<Int16>, Vector<Int16>) |
Narrows two vector of Int16 instances into one vector of SByte using a saturating conversion. |
| NarrowWithSaturation(Vector<Int64>, Vector<Int64>) |
Narrows two vector of Int64 instances into one vector of Int32 using a saturating conversion. |
NarrowWithSaturation(Vector<UInt32>, Vector<UInt32>)
Important
This API is not CLS-compliant.
public:
static System::Numerics::Vector<System::UInt16> NarrowWithSaturation(System::Numerics::Vector<System::UInt32> low, System::Numerics::Vector<System::UInt32> high);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<ushort> NarrowWithSaturation(System.Numerics.Vector<uint> low, System.Numerics.Vector<uint> high);
[<System.CLSCompliant(false)>]
static member NarrowWithSaturation : System.Numerics.Vector<uint32> * System.Numerics.Vector<uint32> -> System.Numerics.Vector<uint16>
Public Function NarrowWithSaturation (low As Vector(Of UInteger), high As Vector(Of UInteger)) As Vector(Of UShort)
Parameters
Returns
A vector of UInt16 containing elements narrowed with saturation from lower and upper.
- Attributes
Applies to
NarrowWithSaturation(Vector<UInt64>, Vector<UInt64>)
Important
This API is not CLS-compliant.
public:
static System::Numerics::Vector<System::UInt32> NarrowWithSaturation(System::Numerics::Vector<System::UInt64> low, System::Numerics::Vector<System::UInt64> high);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<uint> NarrowWithSaturation(System.Numerics.Vector<ulong> low, System.Numerics.Vector<ulong> high);
[<System.CLSCompliant(false)>]
static member NarrowWithSaturation : System.Numerics.Vector<uint64> * System.Numerics.Vector<uint64> -> System.Numerics.Vector<uint32>
Public Function NarrowWithSaturation (low As Vector(Of ULong), high As Vector(Of ULong)) As Vector(Of UInteger)
Parameters
Returns
A vector of UInt32 containing elements narrowed with saturation from lower and upper.
- Attributes
Applies to
NarrowWithSaturation(Vector<UInt16>, Vector<UInt16>)
Important
This API is not CLS-compliant.
public:
static System::Numerics::Vector<System::Byte> NarrowWithSaturation(System::Numerics::Vector<System::UInt16> low, System::Numerics::Vector<System::UInt16> high);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<byte> NarrowWithSaturation(System.Numerics.Vector<ushort> low, System.Numerics.Vector<ushort> high);
[<System.CLSCompliant(false)>]
static member NarrowWithSaturation : System.Numerics.Vector<uint16> * System.Numerics.Vector<uint16> -> System.Numerics.Vector<byte>
Public Function NarrowWithSaturation (low As Vector(Of UShort), high As Vector(Of UShort)) As Vector(Of Byte)
Parameters
Returns
A vector of Byte containing elements narrowed with saturation from lower and upper.
- Attributes
Applies to
NarrowWithSaturation(Vector<Double>, Vector<Double>)
public:
static System::Numerics::Vector<float> NarrowWithSaturation(System::Numerics::Vector<double> low, System::Numerics::Vector<double> high);
public static System.Numerics.Vector<float> NarrowWithSaturation(System.Numerics.Vector<double> low, System.Numerics.Vector<double> high);
static member NarrowWithSaturation : System.Numerics.Vector<double> * System.Numerics.Vector<double> -> System.Numerics.Vector<single>
Public Function NarrowWithSaturation (low As Vector(Of Double), high As Vector(Of Double)) As Vector(Of Single)
Parameters
Returns
A vector of Single containing elements narrowed with saturation from lower and upper.
Applies to
NarrowWithSaturation(Vector<Int32>, Vector<Int32>)
public:
static System::Numerics::Vector<short> NarrowWithSaturation(System::Numerics::Vector<int> low, System::Numerics::Vector<int> high);
public static System.Numerics.Vector<short> NarrowWithSaturation(System.Numerics.Vector<int> low, System.Numerics.Vector<int> high);
static member NarrowWithSaturation : System.Numerics.Vector<int> * System.Numerics.Vector<int> -> System.Numerics.Vector<int16>
Public Function NarrowWithSaturation (low As Vector(Of Integer), high As Vector(Of Integer)) As Vector(Of Short)
Parameters
Returns
A vector of Int16 containing elements narrowed with saturation from lower and upper.
Applies to
NarrowWithSaturation(Vector<Int16>, Vector<Int16>)
Important
This API is not CLS-compliant.
public:
static System::Numerics::Vector<System::SByte> NarrowWithSaturation(System::Numerics::Vector<short> low, System::Numerics::Vector<short> high);
[System.CLSCompliant(false)]
public static System.Numerics.Vector<sbyte> NarrowWithSaturation(System.Numerics.Vector<short> low, System.Numerics.Vector<short> high);
[<System.CLSCompliant(false)>]
static member NarrowWithSaturation : System.Numerics.Vector<int16> * System.Numerics.Vector<int16> -> System.Numerics.Vector<sbyte>
Public Function NarrowWithSaturation (low As Vector(Of Short), high As Vector(Of Short)) As Vector(Of SByte)
Parameters
Returns
A vector of SByte containing elements narrowed with saturation from lower and upper.
- Attributes
Applies to
NarrowWithSaturation(Vector<Int64>, Vector<Int64>)
public:
static System::Numerics::Vector<int> NarrowWithSaturation(System::Numerics::Vector<long> low, System::Numerics::Vector<long> high);
public static System.Numerics.Vector<int> NarrowWithSaturation(System.Numerics.Vector<long> low, System.Numerics.Vector<long> high);
static member NarrowWithSaturation : System.Numerics.Vector<int64> * System.Numerics.Vector<int64> -> System.Numerics.Vector<int>
Public Function NarrowWithSaturation (low As Vector(Of Long), high As Vector(Of Long)) As Vector(Of Integer)
Parameters
Returns
A vector of Int32 containing elements narrowed with saturation from lower and upper.