Leer en inglés

Compartir a través de


IReadOnlyTensor<TSelf,T>.AsReadOnlyTensorSpan Method

Definition

Overloads

AsReadOnlyTensorSpan()

Creates a read-only tensor span for the entire underlying buffer.

AsReadOnlyTensorSpan(ReadOnlySpan<NIndex>)

Creates a read-only tensor span for the specified start indexes.

AsReadOnlyTensorSpan(ReadOnlySpan<NRange>)

Creates a read-only tensor span for the specified ranges.

AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr>)

Creates a read-only tensor span for the specified start indexes.

AsReadOnlyTensorSpan()

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Creates a read-only tensor span for the entire underlying buffer.

C#
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan();

Returns

The converted ReadOnlyTensorSpan<T>.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

AsReadOnlyTensorSpan(ReadOnlySpan<NIndex>)

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Creates a read-only tensor span for the specified start indexes.

C#
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<System.Buffers.NIndex> startIndex);

Parameters

startIndex
ReadOnlySpan<NIndex>

The started indexes to be used.

Returns

The converted ReadOnlyTensorSpan<T>.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

AsReadOnlyTensorSpan(ReadOnlySpan<NRange>)

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Creates a read-only tensor span for the specified ranges.

C#
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<System.Buffers.NRange> range);

Parameters

range
ReadOnlySpan<NRange>

The ranges to be used.

Returns

The converted ReadOnlyTensorSpan<T>.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

AsReadOnlyTensorSpan(ReadOnlySpan<IntPtr>)

Source:
IReadOnlyTensor.cs
Source:
IReadOnlyTensor.cs

Creates a read-only tensor span for the specified start indexes.

C#
public System.Numerics.Tensors.ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(scoped ReadOnlySpan<IntPtr> start);

Parameters

start

ReadOnlySpan<IntPtr>

The start locations to be used.

Returns

The converted ReadOnlyTensorSpan<T>.

Applies to

.NET 10 (package-provided) y otras versiones
Producto Versiones
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)