Vector.Narrow Method

Definition

Overloads

Narrow(Vector<UInt64>, Vector<UInt64>)

Narrows two Vector<UInt64> instances into one Vector<UInt32>.

Narrow(Vector<UInt32>, Vector<UInt32>)

Narrows two Vector<UInt32> instances into one Vector<UInt16>.

Narrow(Vector<Int64>, Vector<Int64>)

Narrows two Vector<Int64> instances into one Vector<Int32>.

Narrow(Vector<UInt16>, Vector<UInt16>)

Narrows two Vector<UInt16> instances into one Vector<Byte>.

Narrow(Vector<Int16>, Vector<Int16>)

Narrows two Vector<Int16> instances into one Vector<SByte>.

Narrow(Vector<Double>, Vector<Double>)

Narrows two Vector<Double> instances into one Vector<Single>.

Narrow(Vector<Int32>, Vector<Int32>)

Narrows two Vector<Int32> instances into one Vector<Int16>.

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>.

[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);

Parameters

source1low
Vector<UInt64>

The first source vector, whose elements become the lower-index elements of the return value.

source2high
Vector<UInt64>

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

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1

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>.

[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);

Parameters

source1low
Vector<UInt32>

The first source vector, whose elements become the lower-index elements of the return value.

source2high
Vector<UInt32>

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

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1

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);

Parameters

source1low
Vector<Int64>

The first source vector, whose elements become the lower-index elements of the return value.

source2high
Vector<Int64>

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

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1

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>.

[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);

Parameters

source1low
Vector<UInt16>

The first source vector, whose elements become the lower-index elements of the return value.

source2high
Vector<UInt16>

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

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1

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>.

[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);

Parameters

source1low
Vector<Int16>

The first source vector, whose elements become the lower-index elements of the return value.

source2high
Vector<Int16>

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

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1

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);

Parameters

source1low
Vector<Double>

The first source vector, whose elements become the lower-index elements of the return value.

source2high
Vector<Double>

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

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1

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);

Parameters

source1low
Vector<Int32>

The first source vector, whose elements become the lower-index elements of the return value.

source2high
Vector<Int32>

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.

Applies to

.NET 9 and other versions
Product Versions
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1