Vector<T> コンストラクター
定義
オーバーロード
Vector<T>(ReadOnlySpan<Byte>) |
指定したバイトの読み取り専用の範囲からベクトルを構築します。Constructs a vector from the given read-only span of bytes. |
Vector<T>(ReadOnlySpan<T>) |
指定した ReadOnlySpan<T> からベクトルを構築します。Constructs a vector from the given ReadOnlySpan<T>. |
Vector<T>(Span<T>) |
指定した Span<T> からベクトルを構築します。Constructs a vector from the given Span<T>. |
Vector<T>(T) |
指定した型を成分とするベクトルを作成します。Creates a vector whose components are of a specified type. |
Vector<T>(T[]) |
指定した配列からベクトルを作成します。Creates a vector from a specified array. |
Vector<T>(T[], Int32) |
指定した配列の、指定したインデックス位置を開始位置として、ベクトルを作成します。Creates a vector from a specified array starting at a specified index position. |
Vector<T>(ReadOnlySpan<Byte>)
指定したバイトの読み取り専用の範囲からベクトルを構築します。Constructs a vector from the given read-only span of bytes.
public:
Vector(ReadOnlySpan<System::Byte> values);
public Vector (ReadOnlySpan<byte> values);
new System.Numerics.Vector<'T (requires 'T : struct)> : ReadOnlySpan<byte> -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (values As ReadOnlySpan(Of Byte))
パラメーター
- values
- ReadOnlySpan<Byte>
ベクトルに追加する値を含む、バイトの読み取り専用の範囲。A read-only span of bytes that contains the values to add to the vector. この範囲には少なくとも Count の要素が含まれている必要があります。The span must contain at least Count elements.
Vector<T>(ReadOnlySpan<T>)
指定した ReadOnlySpan<T> からベクトルを構築します。Constructs a vector from the given ReadOnlySpan<T>.
public:
Vector(ReadOnlySpan<T> values);
public Vector (ReadOnlySpan<T> values);
new System.Numerics.Vector<'T (requires 'T : struct)> : ReadOnlySpan<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (values As ReadOnlySpan(Of T))
パラメーター
- values
- ReadOnlySpan<T>
型 T のオブジェクトの読み取り専用の範囲として、ベクトルに追加する値。この範囲には少なくとも Count の要素が含まれている必要があります。The values to add to the vector, as a read-only span of objects of type T. The span must contain at least Count elements.
Vector<T>(Span<T>)
指定した Span<T> からベクトルを構築します。Constructs a vector from the given Span<T>.
public:
Vector(Span<T> values);
public Vector (Span<T> values);
new System.Numerics.Vector<'T (requires 'T : struct)> : Span<'T (requires 'T : struct)> -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (values As Span(Of T))
パラメーター
Vector<T>(T)
指定した型を成分とするベクトルを作成します。Creates a vector whose components are of a specified type.
public:
Vector(T value);
public Vector (T value);
new System.Numerics.Vector<'T (requires 'T : struct)> : 'T -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (value As T)
パラメーター
- value
- T
ベクトルの成分の型を定義する数値型。The numeric type that defines the type of the components in the vector.
注釈
value
には、任意のプリミティブ数値型 (つまり、Type.IsPrimitive プロパティが @no__t を返す数値型) を指定できます。value
can be any primitive numeric type (that is, a numeric type whose Type.IsPrimitive property returns true
.
Vector<T>(T[])
指定した配列からベクトルを作成します。Creates a vector from a specified array.
public:
Vector(cli::array <T> ^ values);
public Vector (T[] values);
new System.Numerics.Vector<'T (requires 'T : struct)> : 'T[] -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (values As T())
パラメーター
- values
- T[]
数値の配列。A numeric array.
例外
values
が null
です。values
is null
.
注釈
values
には、@no__t 少なくとも1つの要素が含まれている必要があります。values
must contain at least Count elements.
Vector<T>(T[], Int32)
指定した配列の、指定したインデックス位置を開始位置として、ベクトルを作成します。Creates a vector from a specified array starting at a specified index position.
public:
Vector(cli::array <T> ^ values, int index);
public Vector (T[] values, int index);
new System.Numerics.Vector<'T (requires 'T : struct)> : 'T[] * int -> System.Numerics.Vector<'T (requires 'T : struct)>
Public Sub New (values As T(), index As Integer)
パラメーター
- values
- T[]
数値の配列。A numeric array.
- index
- Int32
ベクトルを作成するための開始インデックス位置。The starting index position from which to create the vector.
例外
values
は null
です。values
is null
.
index
が 0 未満です。index
is less than zero.
または-or-
values
の長さから index
を引いた長さが Count 未満です。The length of values
minus index
is less than Count.
注釈
配列には、指定されたインデックスの要素が少なくとも @no__t 0 個含まれている必要があります。The array must contain at least Vector<T>.Count elements from the specified index.