Vector256.Create Method

Definition

Overloads

Create(SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(Single, Single, Single, Single, Single, Single, Single, Single)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(UInt64, UInt64, UInt64, UInt64)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(Int64, Int64, Int64, Int64)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(Double, Double, Double, Double)

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

Create(Vector128<UIntPtr>, Vector128<UIntPtr>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<UInt32>, Vector128<UInt32>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<UInt16>, Vector128<UInt16>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<Single>, Vector128<Single>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<SByte>, Vector128<SByte>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<IntPtr>, Vector128<IntPtr>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<UInt64>, Vector128<UInt64>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<Int32>, Vector128<Int32>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Byte)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(Double)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(Int16)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(Int32)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(Int64)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(IntPtr)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(SByte)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(Single)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(UInt32)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(UInt64)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(Vector128<Int64>, Vector128<Int64>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(UIntPtr)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create(Vector128<Byte>, Vector128<Byte>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<Double>, Vector128<Double>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(Vector128<Int16>, Vector128<Int16>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create(UInt16)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create<T>(Vector128<T>, Vector128<T>)

Creates a new Vector256<T> instance from two Vector128<T> instances.

Create<T>(T[], Int32)

Creates a new Vector256<T> from a given array.

Create<T>(T)

Creates a new Vector256<T> instance with all elements initialized to the specified value.

Create<T>(T[])

Creates a new Vector256<T> from a given array.

Create<T>(Vector128<T>)

Creates a new Vector256<T> instance with the lower and upper 128-bits initialized to a specified value.

Create<T>(ReadOnlySpan<T>)

Creates a new Vector256<T> from a given readonly span.

Create<T>(Vector64<T>)

Creates a new Vector256<T> instance with all 64-bit parts initialized to a specified value.

Create(SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte, SByte)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<sbyte> Create(sbyte e0, sbyte e1, sbyte e2, sbyte e3, sbyte e4, sbyte e5, sbyte e6, sbyte e7, sbyte e8, sbyte e9, sbyte e10, sbyte e11, sbyte e12, sbyte e13, sbyte e14, sbyte e15, sbyte e16, sbyte e17, sbyte e18, sbyte e19, sbyte e20, sbyte e21, sbyte e22, sbyte e23, sbyte e24, sbyte e25, sbyte e26, sbyte e27, sbyte e28, sbyte e29, sbyte e30, sbyte e31);

Parameters

e0
SByte

The value that element 0 will be initialized to.

e1
SByte

The value that element 1 will be initialized to.

e2
SByte

The value that element 2 will be initialized to.

e3
SByte

The value that element 3 will be initialized to.

e4
SByte

The value that element 4 will be initialized to.

e5
SByte

The value that element 5 will be initialized to.

e6
SByte

The value that element 6 will be initialized to.

e7
SByte

The value that element 7 will be initialized to.

e8
SByte

The value that element 8 will be initialized to.

e9
SByte

The value that element 9 will be initialized to.

e10
SByte

The value that element 10 will be initialized to.

e11
SByte

The value that element 11 will be initialized to.

e12
SByte

The value that element 12 will be initialized to.

e13
SByte

The value that element 13 will be initialized to.

e14
SByte

The value that element 14 will be initialized to.

e15
SByte

The value that element 15 will be initialized to.

e16
SByte

The value that element 16 will be initialized to.

e17
SByte

The value that element 17 will be initialized to.

e18
SByte

The value that element 18 will be initialized to.

e19
SByte

The value that element 19 will be initialized to.

e20
SByte

The value that element 20 will be initialized to.

e21
SByte

The value that element 21 will be initialized to.

e22
SByte

The value that element 22 will be initialized to.

e23
SByte

The value that element 23 will be initialized to.

e24
SByte

The value that element 24 will be initialized to.

e25
SByte

The value that element 25 will be initialized to.

e26
SByte

The value that element 26 will be initialized to.

e27
SByte

The value that element 27 will be initialized to.

e28
SByte

The value that element 28 will be initialized to.

e29
SByte

The value that element 29 will be initialized to.

e30
SByte

The value that element 30 will be initialized to.

e31
SByte

The value that element 31 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_setr_epi8

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
public static System.Runtime.Intrinsics.Vector256<byte> Create(byte e0, byte e1, byte e2, byte e3, byte e4, byte e5, byte e6, byte e7, byte e8, byte e9, byte e10, byte e11, byte e12, byte e13, byte e14, byte e15, byte e16, byte e17, byte e18, byte e19, byte e20, byte e21, byte e22, byte e23, byte e24, byte e25, byte e26, byte e27, byte e28, byte e29, byte e30, byte e31);

Parameters

e0
Byte

The value that element 0 will be initialized to.

e1
Byte

The value that element 1 will be initialized to.

e2
Byte

The value that element 2 will be initialized to.

e3
Byte

The value that element 3 will be initialized to.

e4
Byte

The value that element 4 will be initialized to.

e5
Byte

The value that element 5 will be initialized to.

e6
Byte

The value that element 6 will be initialized to.

e7
Byte

The value that element 7 will be initialized to.

e8
Byte

The value that element 8 will be initialized to.

e9
Byte

The value that element 9 will be initialized to.

e10
Byte

The value that element 10 will be initialized to.

e11
Byte

The value that element 11 will be initialized to.

e12
Byte

The value that element 12 will be initialized to.

e13
Byte

The value that element 13 will be initialized to.

e14
Byte

The value that element 14 will be initialized to.

e15
Byte

The value that element 15 will be initialized to.

e16
Byte

The value that element 16 will be initialized to.

e17
Byte

The value that element 17 will be initialized to.

e18
Byte

The value that element 18 will be initialized to.

e19
Byte

The value that element 19 will be initialized to.

e20
Byte

The value that element 20 will be initialized to.

e21
Byte

The value that element 21 will be initialized to.

e22
Byte

The value that element 22 will be initialized to.

e23
Byte

The value that element 23 will be initialized to.

e24
Byte

The value that element 24 will be initialized to.

e25
Byte

The value that element 25 will be initialized to.

e26
Byte

The value that element 26 will be initialized to.

e27
Byte

The value that element 27 will be initialized to.

e28
Byte

The value that element 28 will be initialized to.

e29
Byte

The value that element 29 will be initialized to.

e30
Byte

The value that element 30 will be initialized to.

e31
Byte

The value that element 31 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Remarks

On x86, this method corresponds to __m256i _mm256_setr_epi8

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16, UInt16)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ushort> Create(ushort e0, ushort e1, ushort e2, ushort e3, ushort e4, ushort e5, ushort e6, ushort e7, ushort e8, ushort e9, ushort e10, ushort e11, ushort e12, ushort e13, ushort e14, ushort e15);

Parameters

e0
UInt16

The value that element 0 will be initialized to.

e1
UInt16

The value that element 1 will be initialized to.

e2
UInt16

The value that element 2 will be initialized to.

e3
UInt16

The value that element 3 will be initialized to.

e4
UInt16

The value that element 4 will be initialized to.

e5
UInt16

The value that element 5 will be initialized to.

e6
UInt16

The value that element 6 will be initialized to.

e7
UInt16

The value that element 7 will be initialized to.

e8
UInt16

The value that element 8 will be initialized to.

e9
UInt16

The value that element 9 will be initialized to.

e10
UInt16

The value that element 10 will be initialized to.

e11
UInt16

The value that element 11 will be initialized to.

e12
UInt16

The value that element 12 will be initialized to.

e13
UInt16

The value that element 13 will be initialized to.

e14
UInt16

The value that element 14 will be initialized to.

e15
UInt16

The value that element 15 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_setr_epi16

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16, Int16)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
public static System.Runtime.Intrinsics.Vector256<short> Create(short e0, short e1, short e2, short e3, short e4, short e5, short e6, short e7, short e8, short e9, short e10, short e11, short e12, short e13, short e14, short e15);

Parameters

e0
Int16

The value that element 0 will be initialized to.

e1
Int16

The value that element 1 will be initialized to.

e2
Int16

The value that element 2 will be initialized to.

e3
Int16

The value that element 3 will be initialized to.

e4
Int16

The value that element 4 will be initialized to.

e5
Int16

The value that element 5 will be initialized to.

e6
Int16

The value that element 6 will be initialized to.

e7
Int16

The value that element 7 will be initialized to.

e8
Int16

The value that element 8 will be initialized to.

e9
Int16

The value that element 9 will be initialized to.

e10
Int16

The value that element 10 will be initialized to.

e11
Int16

The value that element 11 will be initialized to.

e12
Int16

The value that element 12 will be initialized to.

e13
Int16

The value that element 13 will be initialized to.

e14
Int16

The value that element 14 will be initialized to.

e15
Int16

The value that element 15 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Remarks

On x86, this method corresponds to __m256i _mm256_setr_epi16

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<uint> Create(uint e0, uint e1, uint e2, uint e3, uint e4, uint e5, uint e6, uint e7);

Parameters

e0
UInt32

The value that element 0 will be initialized to.

e1
UInt32

The value that element 1 will be initialized to.

e2
UInt32

The value that element 2 will be initialized to.

e3
UInt32

The value that element 3 will be initialized to.

e4
UInt32

The value that element 4 will be initialized to.

e5
UInt32

The value that element 5 will be initialized to.

e6
UInt32

The value that element 6 will be initialized to.

e7
UInt32

The value that element 7 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_setr_epi32

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Single, Single, Single, Single, Single, Single, Single, Single)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
public static System.Runtime.Intrinsics.Vector256<float> Create(float e0, float e1, float e2, float e3, float e4, float e5, float e6, float e7);

Parameters

e0
Single

The value that element 0 will be initialized to.

e1
Single

The value that element 1 will be initialized to.

e2
Single

The value that element 2 will be initialized to.

e3
Single

The value that element 3 will be initialized to.

e4
Single

The value that element 4 will be initialized to.

e5
Single

The value that element 5 will be initialized to.

e6
Single

The value that element 6 will be initialized to.

e7
Single

The value that element 7 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Remarks

On x86, this method corresponds to __m256 _mm256_setr_ps

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
public static System.Runtime.Intrinsics.Vector256<int> Create(int e0, int e1, int e2, int e3, int e4, int e5, int e6, int e7);

Parameters

e0
Int32

The value that element 0 will be initialized to.

e1
Int32

The value that element 1 will be initialized to.

e2
Int32

The value that element 2 will be initialized to.

e3
Int32

The value that element 3 will be initialized to.

e4
Int32

The value that element 4 will be initialized to.

e5
Int32

The value that element 5 will be initialized to.

e6
Int32

The value that element 6 will be initialized to.

e7
Int32

The value that element 7 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Remarks

On x86, this method corresponds to __m256i _mm256_setr_epi32

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(UInt64, UInt64, UInt64, UInt64)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ulong> Create(ulong e0, ulong e1, ulong e2, ulong e3);

Parameters

e0
UInt64

The value that element 0 will be initialized to.

e1
UInt64

The value that element 1 will be initialized to.

e2
UInt64

The value that element 2 will be initialized to.

e3
UInt64

The value that element 3 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_setr_epi64x

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Int64, Int64, Int64, Int64)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
public static System.Runtime.Intrinsics.Vector256<long> Create(long e0, long e1, long e2, long e3);

Parameters

e0
Int64

The value that element 0 will be initialized to.

e1
Int64

The value that element 1 will be initialized to.

e2
Int64

The value that element 2 will be initialized to.

e3
Int64

The value that element 3 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Remarks

On x86, this method corresponds to __m256i _mm256_setr_epi64x

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Double, Double, Double, Double)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with each element initialized to the corresponding specified value.

C#
public static System.Runtime.Intrinsics.Vector256<double> Create(double e0, double e1, double e2, double e3);

Parameters

e0
Double

The value that element 0 will be initialized to.

e1
Double

The value that element 1 will be initialized to.

e2
Double

The value that element 2 will be initialized to.

e3
Double

The value that element 3 will be initialized to.

Returns

A new vector with each element initialized to corresponding specified value.

Remarks

On x86, this method corresponds to __m256d _mm256_setr_pd

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<UIntPtr>, Vector128<UIntPtr>)

Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<UIntPtr> Create(System.Runtime.Intrinsics.Vector128<UIntPtr> lower, System.Runtime.Intrinsics.Vector128<UIntPtr> upper);

Parameters

lower

Vector128<UIntPtr>

The value that the lower 128-bits will be initialized to.

upper

Vector128<UIntPtr>

The value that the upper 128-bits will be initialized to.

Returns

Vector256<UIntPtr>

A new Vector256<T> initialized from lower and upper.

Attributes

Applies to

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

Create(Vector128<UInt32>, Vector128<UInt32>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<uint> Create(System.Runtime.Intrinsics.Vector128<uint> lower, System.Runtime.Intrinsics.Vector128<uint> upper);

Parameters

lower
Vector128<UInt32>

The value that the lower 128 bits will be initialized to.

upper
Vector128<UInt32>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_setr_m128i (__m128i lo, __m128i hi)

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<UInt16>, Vector128<UInt16>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ushort> Create(System.Runtime.Intrinsics.Vector128<ushort> lower, System.Runtime.Intrinsics.Vector128<ushort> upper);

Parameters

lower
Vector128<UInt16>

The value that the lower 128 bits will be initialized to.

upper
Vector128<UInt16>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<Single>, Vector128<Single>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
public static System.Runtime.Intrinsics.Vector256<float> Create(System.Runtime.Intrinsics.Vector128<float> lower, System.Runtime.Intrinsics.Vector128<float> upper);

Parameters

lower
Vector128<Single>

The value that the lower 128 bits will be initialized to.

upper
Vector128<Single>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Remarks

On x86, this method corresponds to __m256 _mm256_setr_m128 (__m128 lo, __m128 hi)

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<SByte>, Vector128<SByte>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<sbyte> Create(System.Runtime.Intrinsics.Vector128<sbyte> lower, System.Runtime.Intrinsics.Vector128<sbyte> upper);

Parameters

lower
Vector128<SByte>

The value that the lower 128 bits will be initialized to.

upper
Vector128<SByte>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<IntPtr>, Vector128<IntPtr>)

Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
public static System.Runtime.Intrinsics.Vector256<IntPtr> Create(System.Runtime.Intrinsics.Vector128<IntPtr> lower, System.Runtime.Intrinsics.Vector128<IntPtr> upper);

Parameters

lower

Vector128<IntPtr>

The value that the lower 128-bits will be initialized to.

upper

Vector128<IntPtr>

The value that the upper 128-bits will be initialized to.

Returns

Vector256<IntPtr>

A new Vector256<T> initialized from lower and upper.

Applies to

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

Create(Vector128<UInt64>, Vector128<UInt64>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ulong> Create(System.Runtime.Intrinsics.Vector128<ulong> lower, System.Runtime.Intrinsics.Vector128<ulong> upper);

Parameters

lower
Vector128<UInt64>

The value that the lower 128 bits will be initialized to.

upper
Vector128<UInt64>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Attributes

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<Int32>, Vector128<Int32>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
public static System.Runtime.Intrinsics.Vector256<int> Create(System.Runtime.Intrinsics.Vector128<int> lower, System.Runtime.Intrinsics.Vector128<int> upper);

Parameters

lower
Vector128<Int32>

The value that the lower 128 bits will be initialized to.

upper
Vector128<Int32>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Remarks

On x86, this method corresponds to __m256i _mm256_setr_m128i (__m128i lo, __m128i hi)

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Byte)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
public static System.Runtime.Intrinsics.Vector256<byte> Create(byte value);

Parameters

value
Byte

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Remarks

On x86, this method corresponds to __m256i _mm256_set1_epi8

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Double)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
public static System.Runtime.Intrinsics.Vector256<double> Create(double value);

Parameters

value
Double

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Remarks

On x86, this method corresponds to __m256d _mm256_set1_pd

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Int16)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
public static System.Runtime.Intrinsics.Vector256<short> Create(short value);

Parameters

value
Int16

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Remarks

On x86, this method corresponds to __m256i _mm256_set1_epi16

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Int32)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
public static System.Runtime.Intrinsics.Vector256<int> Create(int value);

Parameters

value
Int32

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Remarks

On x86, this method corresponds to __m256i _mm256_set1_epi32

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Int64)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
public static System.Runtime.Intrinsics.Vector256<long> Create(long value);

Parameters

value
Int64

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Remarks

On x86, this method corresponds to __m256i _mm256_set1_epi64x

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(IntPtr)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
public static System.Runtime.Intrinsics.Vector256<IntPtr> Create(IntPtr value);

Parameters

value
IntPtr

The value that all elements will be initialized to.

Returns

Vector256<IntPtr>

A new Vector256<T> with all elements initialized to value.

Applies to

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

Create(SByte)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<sbyte> Create(sbyte value);

Parameters

value
SByte

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_set1_epi8

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Single)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
public static System.Runtime.Intrinsics.Vector256<float> Create(float value);

Parameters

value
Single

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Remarks

On x86, this method corresponds to __m256 _mm256_set1_ps

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(UInt32)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<uint> Create(uint value);

Parameters

value
UInt32

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_set1_epi32

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(UInt64)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ulong> Create(ulong value);

Parameters

value
UInt64

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_set1_epi64x

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<Int64>, Vector128<Int64>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
public static System.Runtime.Intrinsics.Vector256<long> Create(System.Runtime.Intrinsics.Vector128<long> lower, System.Runtime.Intrinsics.Vector128<long> upper);

Parameters

lower
Vector128<Int64>

The value that the lower 128 bits will be initialized to.

upper
Vector128<Int64>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(UIntPtr)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<UIntPtr> Create(UIntPtr value);

Parameters

value
UIntPtr

The value that all elements will be initialized to.

Returns

Vector256<UIntPtr>

A new Vector256<T> with all elements initialized to value.

Attributes

Applies to

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

Create(Vector128<Byte>, Vector128<Byte>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
public static System.Runtime.Intrinsics.Vector256<byte> Create(System.Runtime.Intrinsics.Vector128<byte> lower, System.Runtime.Intrinsics.Vector128<byte> upper);

Parameters

lower
Vector128<Byte>

The value that the lower 128 bits will be initialized to.

upper
Vector128<Byte>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<Double>, Vector128<Double>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
public static System.Runtime.Intrinsics.Vector256<double> Create(System.Runtime.Intrinsics.Vector128<double> lower, System.Runtime.Intrinsics.Vector128<double> upper);

Parameters

lower
Vector128<Double>

The value that the lower 128 bits will be initialized to.

upper
Vector128<Double>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Remarks

On x86, this method corresponds to __m256d _mm256_setr_m128d (__m128d lo, __m128d hi)

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(Vector128<Int16>, Vector128<Int16>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
public static System.Runtime.Intrinsics.Vector256<short> Create(System.Runtime.Intrinsics.Vector128<short> lower, System.Runtime.Intrinsics.Vector128<short> upper);

Parameters

lower
Vector128<Int16>

The value that the lower 128 bits will be initialized to.

upper
Vector128<Int16>

The value that the upper 128 bits will be initialized to.

Returns

A new vector initialized from lower and upper.

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create(UInt16)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Important

This API is not CLS-compliant.

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
[System.CLSCompliant(false)]
public static System.Runtime.Intrinsics.Vector256<ushort> Create(ushort value);

Parameters

value
UInt16

The value that all elements will be initialized to.

Returns

A new vector with all elements initialized to value.

Attributes

Remarks

On x86, this method corresponds to __m256i _mm256_set1_epi16

Applies to

.NET 10 and other versions
Product Versions
.NET Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10

Create<T>(Vector128<T>, Vector128<T>)

Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance from two Vector128<T> instances.

C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(System.Runtime.Intrinsics.Vector128<T> lower, System.Runtime.Intrinsics.Vector128<T> upper);

Type Parameters

T

The type of the elements in the vector.

Parameters

lower
Vector128<T>

The value that the lower 128-bits will be initialized to.

upper
Vector128<T>

The value that the upper 128-bits will be initialized to.

Returns

A new Vector256<T> initialized from lower and upper.

Exceptions

The type of lower and upper (T) is not supported.

Applies to

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

Create<T>(T[], Int32)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> from a given array.

C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(T[] values, int index);
C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(T[] values, int index) where T : struct;

Type Parameters

T

The type of the elements in the vector.

Parameters

values
T[]

The array from which the vector is created.

index
Int32

The index in values at which to being reading elements.

Returns

A new Vector256<T> with its elements set to the first Count elements from values.

Exceptions

values is null.

The length of values, starting from index, is less than Count.

The type of values (T) is not supported.

Applies to

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

Create<T>(T)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> instance with all elements initialized to the specified value.

C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(T value);
C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(T value) where T : struct;

Type Parameters

T

The type of the elements in the vector.

Parameters

value
T

The value that all elements will be initialized to.

Returns

A new Vector256<T> with all elements initialized to value.

Exceptions

The type of value (T) is not supported.

Applies to

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

Create<T>(T[])

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> from a given array.

C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(T[] values);
C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(T[] values) where T : struct;

Type Parameters

T

The type of the elements in the vector.

Parameters

values
T[]

The array from which the vector is created.

Returns

A new Vector256<T> with its elements set to the first Count elements from values.

Exceptions

values is null.

The length of values is less than Count.

The type of values (T) is not supported.

Applies to

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

Create<T>(Vector128<T>)

Creates a new Vector256<T> instance with the lower and upper 128-bits initialized to a specified value.

C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(System.Runtime.Intrinsics.Vector128<T> value);

Type Parameters

T

The type of the elements in the vector.

Parameters

value
Vector128<T>

The value that the lower and upper 128-bits will be initialized to.

Returns

A new Vector128<T> with the lower and upper 128-bits initialized to value.

Exceptions

The type of value (T) is not supported.

Applies to

.NET 10 and .NET 9
Product Versions
.NET 9, 10

Create<T>(ReadOnlySpan<T>)

Source:
Vector256.cs
Source:
Vector256.cs
Source:
Vector256.cs

Creates a new Vector256<T> from a given readonly span.

C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(ReadOnlySpan<T> values);
C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(ReadOnlySpan<T> values) where T : struct;

Type Parameters

T

The type of the elements in the vector.

Parameters

values
ReadOnlySpan<T>

The readonly span from which the vector is created.

Returns

A new Vector256<T> with its elements set to the first Count elements from values.

Exceptions

The length of values is less than Count.

The type of values (T) is not supported.

Applies to

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

Create<T>(Vector64<T>)

Creates a new Vector256<T> instance with all 64-bit parts initialized to a specified value.

C#
public static System.Runtime.Intrinsics.Vector256<T> Create<T>(System.Runtime.Intrinsics.Vector64<T> value);

Type Parameters

T

The type of the elements in the vector.

Parameters

value
Vector64<T>

The value that the 64-bit parts will be initialized to.

Returns

A new Vector128<T> with the 64-bit parts initialized to value.

Exceptions

The type of value (T) is not supported.

Applies to

.NET 10 and .NET 9
Product Versions
.NET 9, 10