共用方式為


Tensor.BroadcastTo 方法

定義

多載

BroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

將資料從 source 廣播至 destination

BroadcastTo<T>(Tensor<T>, TensorSpan<T>)

將資料從 source 廣播至 destination

BroadcastTo<T>(TensorSpan<T>, TensorSpan<T>)

將資料從 source 廣播至 destination

BroadcastTo<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

來源:
TensorExtensions.cs
來源:
TensorExtensions.cs

將資料從 source 廣播至 destination

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void BroadcastTo(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % source, System::Numerics::Tensors::TensorSpan<T> % destination);
public static void BroadcastTo<T> (this in System.Numerics.Tensors.ReadOnlyTensorSpan<T> source, in System.Numerics.Tensors.TensorSpan<T> destination);
static member BroadcastTo : ReadOnlyTensorSpan * TensorSpan -> unit
<Extension()>
Public Sub BroadcastTo(Of T) (ByRef source As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T))

類型參數

T

參數

destination
TensorSpan<T>

適用於

BroadcastTo<T>(Tensor<T>, TensorSpan<T>)

來源:
TensorExtensions.cs
來源:
TensorExtensions.cs

將資料從 source 廣播至 destination

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void BroadcastTo(System::Numerics::Tensors::Tensor<T> ^ source, System::Numerics::Tensors::TensorSpan<T> % destination);
public static void BroadcastTo<T> (this System.Numerics.Tensors.Tensor<T> source, in System.Numerics.Tensors.TensorSpan<T> destination);
static member BroadcastTo : System.Numerics.Tensors.Tensor<'T> * TensorSpan -> unit
<Extension()>
Public Sub BroadcastTo(Of T) (source As Tensor(Of T), ByRef destination As TensorSpan(Of T))

類型參數

T

參數

source
Tensor<T>

輸入 TensorSpan<T>

destination
TensorSpan<T>

適用於

BroadcastTo<T>(TensorSpan<T>, TensorSpan<T>)

來源:
TensorExtensions.cs
來源:
TensorExtensions.cs

將資料從 source 廣播至 destination

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static void BroadcastTo(System::Numerics::Tensors::TensorSpan<T> % source, System::Numerics::Tensors::TensorSpan<T> % destination);
public static void BroadcastTo<T> (this in System.Numerics.Tensors.TensorSpan<T> source, in System.Numerics.Tensors.TensorSpan<T> destination);
static member BroadcastTo : TensorSpan * TensorSpan -> unit
<Extension()>
Public Sub BroadcastTo(Of T) (ByRef source As TensorSpan(Of T), ByRef destination As TensorSpan(Of T))

類型參數

T

參數

source
TensorSpan<T>

輸入 TensorSpan<T>

destination
TensorSpan<T>

其他 TensorSpan<T> 讓圖形可廣播。

適用於