Vector.ShiftRightArithmetic Method

Definition

Overloads

ShiftRightArithmetic(Vector<Int16>, Int32)

Shifts (signed) each element of a vector right by the specified amount.

ShiftRightArithmetic(Vector<Int32>, Int32)

Shifts (signed) each element of a vector right by the specified amount.

ShiftRightArithmetic(Vector<Int64>, Int32)

Shifts (signed) each element of a vector right by the specified amount.

ShiftRightArithmetic(Vector<IntPtr>, Int32)

Shifts (signed) each element of a vector right by the specified amount.

ShiftRightArithmetic(Vector<SByte>, Int32)

Shifts (signed) each element of a vector right by the specified amount.

ShiftRightArithmetic(Vector<Int16>, Int32)

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Shifts (signed) each element of a vector right by the specified amount.

C#
public static System.Numerics.Vector<short> ShiftRightArithmetic(System.Numerics.Vector<short> value, int shiftCount);

Parameters

value
Vector<Int16>

The vector whose elements are to be shifted.

shiftCount
Int32

The number of bits by which to shift each element.

Returns

A vector whose elements where shifted right by shiftCount.

Applies to

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

ShiftRightArithmetic(Vector<Int32>, Int32)

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Shifts (signed) each element of a vector right by the specified amount.

C#
public static System.Numerics.Vector<int> ShiftRightArithmetic(System.Numerics.Vector<int> value, int shiftCount);

Parameters

value
Vector<Int32>

The vector whose elements are to be shifted.

shiftCount
Int32

The number of bits by which to shift each element.

Returns

A vector whose elements where shifted right by shiftCount.

Applies to

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

ShiftRightArithmetic(Vector<Int64>, Int32)

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Shifts (signed) each element of a vector right by the specified amount.

C#
public static System.Numerics.Vector<long> ShiftRightArithmetic(System.Numerics.Vector<long> value, int shiftCount);

Parameters

value
Vector<Int64>

The vector whose elements are to be shifted.

shiftCount
Int32

The number of bits by which to shift each element.

Returns

A vector whose elements where shifted right by shiftCount.

Applies to

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

ShiftRightArithmetic(Vector<IntPtr>, Int32)

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Shifts (signed) each element of a vector right by the specified amount.

C#
public static System.Numerics.Vector<IntPtr> ShiftRightArithmetic(System.Numerics.Vector<IntPtr> value, int shiftCount);

Parameters

value

Vector<IntPtr>

The vector whose elements are to be shifted.

shiftCount
Int32

The number of bits by which to shift each element.

Returns

Vector<IntPtr>

A vector whose elements where shifted right by shiftCount.

Applies to

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

ShiftRightArithmetic(Vector<SByte>, Int32)

Source:
Vector.cs
Source:
Vector.cs
Source:
Vector.cs

Important

This API is not CLS-compliant.

Shifts (signed) each element of a vector right by the specified amount.

C#
[System.CLSCompliant(false)]
public static System.Numerics.Vector<sbyte> ShiftRightArithmetic(System.Numerics.Vector<sbyte> value, int shiftCount);

Parameters

value
Vector<SByte>

The vector whose elements are to be shifted.

shiftCount
Int32

The number of bits by which to shift each element.

Returns

A vector whose elements where shifted right by shiftCount.

Attributes

Applies to

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