แชร์ผ่าน


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

Definition

Overloads

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

Returns the specified element of the ReadOnlyTensor.

IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan<NRange>]

Returns a slice of the ReadOnlyTensor.

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

Returns the specified element of the ReadOnlyTensor.

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

Source:
Tensor.cs

Returns the specified element of the ReadOnlyTensor.

property T System::Numerics::Tensors::IReadOnlyTensor<System::Numerics::Tensors::Tensor<T>,T>::Item[ReadOnlySpan<System::Buffers::NIndex>] { T get(ReadOnlySpan<System::Buffers::NIndex> indexes); };
T System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item[scoped ReadOnlySpan<System.Buffers.NIndex> indexes] { get; }
member this.System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item(ReadOnlySpan<System.Buffers.NIndex>) : 'T
 ReadOnly Property Item(indexes As ReadOnlySpan(Of NIndex)) As T Implements IReadOnlyTensor(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

IReadOnlyTensor<Tensor<T>,T>.Item[ReadOnlySpan<NRange>]

Source:
Tensor.cs

Returns a slice of the ReadOnlyTensor.

property System::Numerics::Tensors::Tensor<T> ^ System::Numerics::Tensors::IReadOnlyTensor<System::Numerics::Tensors::Tensor<T>,T>::Item[ReadOnlySpan<System::Buffers::NRange>] { System::Numerics::Tensors::Tensor<T> ^ get(ReadOnlySpan<System::Buffers::NRange> ranges); };
System.Numerics.Tensors.Tensor<T> System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item[scoped ReadOnlySpan<System.Buffers.NRange> ranges] { get; }
member this.System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item(ReadOnlySpan<System.Buffers.NRange>) : System.Numerics.Tensors.Tensor<'T>
 ReadOnly Property Item(ranges As ReadOnlySpan(Of NRange)) As Tensor(Of T) Implements IReadOnlyTensor(Of Tensor(Of T), T).Item

Parameters

Property Value

Implements

Exceptions

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

Applies to

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

Source:
Tensor.cs

Returns the specified element of the ReadOnlyTensor.

property T System::Numerics::Tensors::IReadOnlyTensor<System::Numerics::Tensors::Tensor<T>,T>::Item[ReadOnlySpan<IntPtr>] { T get(ReadOnlySpan<IntPtr> indexes); };
T System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item[scoped ReadOnlySpan<IntPtr> indexes] { get; }
member this.System.Numerics.Tensors.IReadOnlyTensor<System.Numerics.Tensors.Tensor<T>,T>.Item(ReadOnlySpan<nativeint>) : 'T
 ReadOnly Property Item(indexes As ReadOnlySpan(Of IntPtr)) As T Implements IReadOnlyTensor(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