Vector256.WithElement<T>(Vector256<T>, Int32, T) Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Belirtilen dizindeki öğesi belirtilen değere, kalan öğeler ise belirtilen vektördekiyle aynı değere ayarlanmış şekilde yeni Vector256<T> bir oluşturur.
public:
generic <typename T>
where T : value class[System::Runtime::CompilerServices::Extension]
static System::Runtime::Intrinsics::Vector256<T> WithElement(System::Runtime::Intrinsics::Vector256<T> vector, int index, T value);
public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
static System::Runtime::Intrinsics::Vector256<T> WithElement(System::Runtime::Intrinsics::Vector256<T> vector, int index, T value);
public static System.Runtime.Intrinsics.Vector256<T> WithElement<T> (this System.Runtime.Intrinsics.Vector256<T> vector, int index, T value) where T : struct;
public static System.Runtime.Intrinsics.Vector256<T> WithElement<T> (this System.Runtime.Intrinsics.Vector256<T> vector, int index, T value);
static member WithElement : System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> * int * 'T -> System.Runtime.Intrinsics.Vector256<'T (requires 'T : struct)> (requires 'T : struct)
static member WithElement : System.Runtime.Intrinsics.Vector256<'T> * int * 'T -> System.Runtime.Intrinsics.Vector256<'T>
<Extension()>
Public Function WithElement(Of T As Structure) (vector As Vector256(Of T), index As Integer, value As T) As Vector256(Of T)
<Extension()>
Public Function WithElement(Of T) (vector As Vector256(Of T), index As Integer, value As T) As Vector256(Of T)
Tür Parametreleri
- T
Giriş vektörünün türü.
Parametreler
- vector
- Vector256<T>
Kalan öğeleri almak için vektör.
- index
- Int32
Ayarlanacağı öğenin dizini.
- value
- T
Öğesinin ayarlanacağı değer.
Döndürülenler
öğesi değerinin index
olarak, value
kalan öğelerin ise içindekiyle vector
aynı değere ayarlandığı bir vektör.
Özel durumlar
(T
) türü vector
desteklenmez.
index
sıfırdan küçük veya öğe sayısından büyük.
Şunlara uygulanır
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin