VBuffer<T>.CopyTo 方法

定義

多載

CopyTo(VBuffer<T>)

從這個緩衝區複製到指定的目的地。

CopyTo(Span<T>)

從這個緩衝區複製到指定的目的地範圍。 這個「densifies」。

CopyTo(VBuffer<T>, Int32, Int32)

將這個緩衝區的值範圍複製到指定的目的地。

CopyTo(Span<T>, Int32, T)

從指定的索引開始,從這個緩衝區複製到指定的目的地範圍。 這個「densifies」。

CopyTo(VBuffer<T>)

從這個緩衝區複製到指定的目的地。

public void CopyTo (ref Microsoft.ML.Data.VBuffer<T> destination);
member this.CopyTo : VBuffer -> unit
Public Sub CopyTo (ByRef destination As VBuffer(Of T))

參數

destination
VBuffer<T>

目的緩衝區。 複製之後,這會有 LengthLength

適用於

CopyTo(Span<T>)

從這個緩衝區複製到指定的目的地範圍。 這個「densifies」。

public void CopyTo (Span<T> destination);
member this.CopyTo : Span<'T> -> unit
Public Sub CopyTo (destination As Span(Of T))

參數

destination
Span<T>

目的緩衝區。 這 Length 必須至少有 Length

適用於

CopyTo(VBuffer<T>, Int32, Int32)

將這個緩衝區的值範圍複製到指定的目的地。

public void CopyTo (ref Microsoft.ML.Data.VBuffer<T> destination, int sourceIndex, int length);
member this.CopyTo : VBuffer * int * int -> unit
Public Sub CopyTo (ByRef destination As VBuffer(Of T), sourceIndex As Integer, length As Integer)

參數

destination
VBuffer<T>

目的緩衝區。 複製之後,這會有 Lengthlength

sourceIndex
Int32

要從這個向量複製的最小內含索引。

length
Int32

要從這個向量複製到 的 destination 邏輯值數目。

適用於

CopyTo(Span<T>, Int32, T)

從指定的索引開始,從這個緩衝區複製到指定的目的地範圍。 這個「densifies」。

public void CopyTo (Span<T> destination, int destinationIndex, T defaultValue = default);
member this.CopyTo : Span<'T> * int * 'T -> unit
Public Sub CopyTo (destination As Span(Of T), destinationIndex As Integer, Optional defaultValue As T = Nothing)

參數

destination
Span<T>

目的緩衝區。 這 Length 必須至少 Length 加上 destinationIndex

destinationIndex
Int32

開始複製的 destination 起始索引。

defaultValue
T

要填入隱含疏鬆專案的值。 這是疏鬆預期隱含疏鬆專案具有預設值 T 的潛在例外 VBuffer<T> 狀況。

適用於