แชร์ผ่าน


Tensor<T>.ITensor<Tensor<T>,T>.Item[ReadOnlySpan Property

Definition

Overloads

ITensor<Tensor<T>,T>.Item[ReadOnlySpan<NIndex>]

Returns the specified element of the Tensor.

ITensor<Tensor<T>,T>.Item[ReadOnlySpan<IntPtr>]

Returns the specified element of the Tensor.

ITensor<Tensor<T>,T>.Item[ReadOnlySpan<NIndex>]

Source:
Tensor.cs

Returns the specified element of the Tensor.

property T System::Numerics::Tensors::ITensor<System::Numerics::Tensors::Tensor<T>,T>::Item[ReadOnlySpan<System::Buffers::NIndex>] { T get(ReadOnlySpan<System::Buffers::NIndex> indexes); void set(ReadOnlySpan<System::Buffers::NIndex> indexes, T value); };
T System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>,T>.Item[scoped ReadOnlySpan<System.Buffers.NIndex> indexes] { get; set; }
member this.System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>,T>.Item(ReadOnlySpan<System.Buffers.NIndex>) : 'T with get, set
 Property Item(indexes As ReadOnlySpan(Of NIndex)) As T Implements ITensor(Of Tensor(Of T), T).Item

Parameters

indexes
ReadOnlySpan<NIndex>

Property Value

T

Implements

Exceptions

Thrown when index less than 0 or index greater than or equal to FlattenedLength

Applies to

ITensor<Tensor<T>,T>.Item[ReadOnlySpan<IntPtr>]

Source:
Tensor.cs

Returns the specified element of the Tensor.

property T System::Numerics::Tensors::ITensor<System::Numerics::Tensors::Tensor<T>,T>::Item[ReadOnlySpan<IntPtr>] { T get(ReadOnlySpan<IntPtr> indexes); void set(ReadOnlySpan<IntPtr> indexes, T value); };
T System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>,T>.Item[scoped ReadOnlySpan<IntPtr> indexes] { get; set; }
member this.System.Numerics.Tensors.ITensor<System.Numerics.Tensors.Tensor<T>,T>.Item(ReadOnlySpan<nativeint>) : 'T with get, set
 Property Item(indexes As ReadOnlySpan(Of IntPtr)) As T Implements ITensor(Of Tensor(Of T), T).Item

Parameters

indexes

ReadOnlySpan<IntPtr>

ReadOnlySpan<nativeint>

Property Value

T

Implements

Exceptions

Thrown when index less than 0 or index greater than or equal to FlattenedLength

Applies to