Vector64.WithElement(Vector64<T>, Int32, T) Vector64.WithElement(Vector64<T>, Int32, T) Vector64.WithElement(Vector64<T>, Int32, T) Vector64.WithElement(Vector64<T>, Int32, T) Method

定義

指定のインデックスの要素を指定の値に設定し、残りの要素を指定のベクターと同じ値に設定して、新しい Vector64<T> を作成します。Creates a new Vector64<T> with the element at the specified index set to the specified value and the remaining elements set to the same value as that in the given vector.

public:
generic <typename T>
 where T : value class[System::Runtime::CompilerServices::Extension]
 static System::Runtime::Intrinsics::Vector64<T> WithElement(System::Runtime::Intrinsics::Vector64<T> vector, int index, T value);
public static System.Runtime.Intrinsics.Vector64<T> WithElement<T> (this System.Runtime.Intrinsics.Vector64<T> vector, int index, T value) where T : struct;
static member WithElement : System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> * int * 'T -> System.Runtime.Intrinsics.Vector64<'T (requires 'T : struct)> (requires 'T : struct)
<Extension()>
Public Function WithElement(Of T As Structure) (vector As Vector64(Of T), index As Integer, value As T) As Vector64(Of T)

型パラメーター

T

入力ベクトルの型。The type of the input vector.

パラメーター

vector
Vector64<T> Vector64<T> Vector64<T> Vector64<T>

残りの要素の取得元となるベクター。The vector to get the remaining elements from.

index
Int32 Int32 Int32 Int32

設定する要素のインデックス。The index of the element to set.

value
T T T T

要素を設定する値。The value to set the element to.

戻り値

index の要素の値を value に設定し、残りの要素を vector の値と同じ値に設定した Vector64<T>A Vector64<T> with the value of the element at index set to value and the remaining elements set to the same value as that in vector.

例外

vector の型 (T) がサポートされていません。The type of vector (T) is not supported.

index が 0 未満か、要素数を超えています。index was less than zero or greater than the number of elements.

適用対象