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>)

Source:
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>)

Source:
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>)

Source:
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> 使形状可广播。

适用于