Sdílet prostřednictvím


Tensor.SetSlice Metoda

Definice

Přetížení

SetSlice<T>(Tensor<T>, ReadOnlyTensorSpan<T>, ReadOnlySpan<NRange>)

Nastaví řez daného tensor se zadanými values pro danou ranges

SetSlice<T>(TensorSpan<T>, ReadOnlyTensorSpan<T>, ReadOnlySpan<NRange>)

Nastaví řez daného tensor se zadanými values pro danou ranges

SetSlice<T>(Tensor<T>, ReadOnlyTensorSpan<T>, ReadOnlySpan<NRange>)

Zdroj:
TensorExtensions.cs
Zdroj:
TensorExtensions.cs

Nastaví řez daného tensor se zadanými values pro danou ranges

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::Tensor<T> ^ SetSlice(System::Numerics::Tensors::Tensor<T> ^ tensor, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % values, ReadOnlySpan<System::Buffers::NRange> ranges);
public static System.Numerics.Tensors.Tensor<T> SetSlice<T> (this System.Numerics.Tensors.Tensor<T> tensor, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> values, scoped ReadOnlySpan<System.Buffers.NRange> ranges);
static member SetSlice : System.Numerics.Tensors.Tensor<'T> * ReadOnlyTensorSpan * ReadOnlySpan<System.Buffers.NRange> -> System.Numerics.Tensors.Tensor<'T>
<Extension()>
Public Function SetSlice(Of T) (tensor As Tensor(Of T), ByRef values As ReadOnlyTensorSpan(Of T), ranges As ReadOnlySpan(Of NRange)) As Tensor(Of T)

Parametry typu

T

Parametry

tensor
Tensor<T>

Vstupní Tensor<T>.

values
ReadOnlyTensorSpan<T>

Hodnoty, které chcete nastavit v tensor.

ranges
ReadOnlySpan<NRange>

Rozsahy, které chcete nastavit.

Návraty

Platí pro

SetSlice<T>(TensorSpan<T>, ReadOnlyTensorSpan<T>, ReadOnlySpan<NRange>)

Zdroj:
TensorExtensions.cs
Zdroj:
TensorExtensions.cs

Nastaví řez daného tensor se zadanými values pro danou ranges

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Numerics::Tensors::TensorSpan<T> ^ SetSlice(System::Numerics::Tensors::TensorSpan<T> % tensor, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % values, ReadOnlySpan<System::Buffers::NRange> ranges);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> SetSlice<T> (this in System.Numerics.Tensors.TensorSpan<T> tensor, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> values, scoped ReadOnlySpan<System.Buffers.NRange> ranges);
static member SetSlice : TensorSpan * ReadOnlyTensorSpan * ReadOnlySpan<System.Buffers.NRange> -> TensorSpan
<Extension()>
Public Function SetSlice(Of T) (ByRef tensor As TensorSpan(Of T), ByRef values As ReadOnlyTensorSpan(Of T), ranges As ReadOnlySpan(Of NRange)) As TensorSpan(Of T)

Parametry typu

T

Parametry

tensor
TensorSpan<T>

Vstupní Tensor<T>.

values
ReadOnlyTensorSpan<T>

Hodnoty, které chcete nastavit v tensor.

ranges
ReadOnlySpan<NRange>

Rozsahy, které chcete nastavit.

Návraty

Platí pro